Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / how to make gravity

Author
Message
mike5424
15
Years of Service
User Offline
Joined: 30th Mar 2009
Location:
Posted: 11th Apr 2009 13:03
i would like to be able to use gravity in my game but i don't know how plz help

www.madninjas.co.nr we are mad and we are ninjas
MedianHansen
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 11th Apr 2009 16:53
Well... making gravity itself is easy...

Just change the 2, in all the object commands, to whatever number your object has
mike5424
15
Years of Service
User Offline
Joined: 30th Mar 2009
Location:
Posted: 11th Apr 2009 17:54
oh, thx

www.madninjas.co.nr we are mad and we are ninjas
MedianHansen
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 11th Apr 2009 18:00
Well... when you wan't things to collide, that's where it get's tricky!
mike5424
15
Years of Service
User Offline
Joined: 30th Mar 2009
Location:
Posted: 11th Apr 2009 18:42
i got the gravity thing working but now i need to know how to do the collision when i walk into a wall can you help plz

www.madninjas.co.nr we are mad and we are ninjas
MedianHansen
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 11th Apr 2009 19:02
I might be able to, i must admit, that's the point i'm at as well... but i'll try... now does it work when you land on the "ground"?
mike5424
15
Years of Service
User Offline
Joined: 30th Mar 2009
Location:
Posted: 11th Apr 2009 19:46
there was a little problem i fell through the floor like 5 time but i think it was because of the rest of my code so i used this

this one is for w,s,a and d keys and it worked fine for me.

www.madninjas.co.nr we are mad and we are ninjas
MedianHansen
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 11th Apr 2009 20:51
Yeah, that seems fine, well for collision, i would advide you to get sparky's collision dll
http://sparky152.homestead.com/files/DBCcollisions_v1.05.zip
mike5424
15
Years of Service
User Offline
Joined: 30th Mar 2009
Location:
Posted: 11th Apr 2009 22:26
wow..... you must be magic i was just about to go and ask where i can get sparkeys collision dll lol.

www.madninjas.co.nr we are mad and we are ninjas
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 11th Apr 2009 22:30
Version 2.05 is the most recent version of Sparky's, I think:
http://forum.thegamecreators.com/?m=forum_view&t=74762&b=5

<---Spell casting battle game!

Login to post a reply

Server time is: 2024-09-28 04:14:25
Your offset time is: 2024-09-28 04:14:25