Help in movement please V2.0 =)

hi, now iam sure it compiles, if anyone would care to compile my code to find out why the 2D movement looks so weird…
Here it is http://mega.ist.utl.pt/~jagl/gl/

Thanks =)

I don’t know if you got my other message, I got it to compile the first version, but there where not TGA files to load so it stopped.

I will try later, when I am on the linux system again.

Originally posted by hellox:
[b]hi, now iam sure it compiles, if anyone would care to compile my code to find out why the 2D movement looks so weird…
Here it is http://mega.ist.utl.pt/~jagl/gl/

Thanks =)[/b]

Ok =) i’ll wait

I’m only quickly guessing here, but I think you need to put some more glPushMatrix().

And especially before the
line with glTranslatef(??, ??, -20f);

Hope I could be of any help

Red15 thanks for the help, ill get to it on sunday =) i hope thats it!

JML

ok i’ve found the problem (i think) its when i draw the textures for the background (code between /******************* DESENHA SALA ************/ and / DESENHA DOGUN *******************************/). If i take that code of it has a smoth movement… so i think im making to many acesses to memory to bind the textures… so … if anyone thinks its a different problem, please tell me. Thanks

Sorry for the long delay, just went back and downloaded you lastest code.

First thing will do is add code to allow the use of the arrrow keys and not just the number pad.

Also need to look at how your level map, code works.

Originally posted by hellox:
ok i’ve found the problem (i think) its when i draw the textures for the background (code between /******************* DESENHA SALA ************/ and / DESENHA DOGUN *******************************/). If i take that code of it has a smoth movement… so i think im making to many acesses to memory to bind the textures… so … if anyone thinks its a different problem, please tell me. Thanks

U mean the way iam building the map? well on windows worked fine, i dont want anything good, just want it to work well… Anyways, thanks again =)

JML

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.