Thanks again Joe, your code works.
Now i have a new problem, the lights are rotating also, how do i fix this ?
thanks
20 hours ago, ferrous said:
32 bit windows XP? It's kind of admirable you're targeting that, but that encompasses 0.22% of all Steam Users. You can pretty safely target higher OS versions at this point.
Its what i have, i dont have internet on my computer, to install new windows you need internet.
People can still play my game, persons without steam or internet do also exist.
There is no big market for 2D side scrollers, people who still play that use older game consoles, those are the people i aim for.
20 hours ago, ferrous said:
As this is for rendering, you could do all your work in shaders, which will be faster still. Maybe treat each sphere/circle/node of your worms as an instance and utilize instancing to rotate them in the vertex shader.
I would like to, i dont want to learn a shader language, can it be done without ?
With shader you can also make skinned meshes right ?, i would like to make humans walk and move.
First i like to have something simple animated, i will make a new topic about that.
20 hours ago, JTippetts said:
atan2 returns values in the range -pi to pi, corresponding to -180 to +180 degrees. You can add pi to the result to get values in the range of 0 to 2pi.
Who telling you that is not correct, i am sure now.
You could try to make a function that rotates a enemy towards the player with atan2, then you see.