Gravity issue - Problem with player being stuck in the ground.
3 posters
:: DarkGDK :: DarkGDK Help
Page 1 of 1
Gravity issue - Problem with player being stuck in the ground.
Hey guys,
I recently added collision to my game and it worked fine, i followed the tutorial on youtube, and i got the Collission download too. Everything was going fine but i needed to add gravity. The gravity didnt work(I took the gravity example from the tutorial folder in dark GDK) Soooo I open their one that has gravity working.. the terrain folder. It works fine. So i thought maybe the problem was not having terrain to calculate the ground level(Obviously not) Soo now I have terrain, Enemy, My gun/player.. but the player wont move with the arrow keys, he can still aim though. It's as if he's stuck on the edge of the map and i get the funny feeling there is a muckup in my code and it may be an obvious one. If anyone would be willing to glance at my code and maybe point out where I may have gone wrong, that would be much appreciated!
Thanks ^^
I recently added collision to my game and it worked fine, i followed the tutorial on youtube, and i got the Collission download too. Everything was going fine but i needed to add gravity. The gravity didnt work(I took the gravity example from the tutorial folder in dark GDK) Soooo I open their one that has gravity working.. the terrain folder. It works fine. So i thought maybe the problem was not having terrain to calculate the ground level(Obviously not) Soo now I have terrain, Enemy, My gun/player.. but the player wont move with the arrow keys, he can still aim though. It's as if he's stuck on the edge of the map and i get the funny feeling there is a muckup in my code and it may be an obvious one. If anyone would be willing to glance at my code and maybe point out where I may have gone wrong, that would be much appreciated!
Thanks ^^
Miami_Rose- Posts : 8
Join date : 2010-05-12
Re: Gravity issue - Problem with player being stuck in the ground.
If you post your code up, we might be able to help. We need to see how you programmed your game in order to give advice.
GreatCooler- Posts : 6
Join date : 2010-05-22
g
i have the same problem but i think i know what is happening. in one of pqowieuryt's vids about collision he said that you would need math to slide along an object. without a function doing that you cant slide along the floor you just stick to it. i have no idea how to make a function like this but maybe some one can post it
c++noob- Posts : 7
Join date : 2011-07-24
:: DarkGDK :: DarkGDK Help
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|