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 / I feel slightly smarter!!!

Author
Message
cybersamurai
21
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 6th Jan 2003 03:23
I got vinney the stick figure to move back and forth in my game and jump up in the air, although he doesn't come down

and i didn't use ctrl-c: ctrl-v to do it

p.s. thanks to RPGamer for the info about inc and dec for moving
Rusty Gears
Dr DooMer
21
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: United Kingdom
Posted: 6th Jan 2003 03:46
Sounds like you need some basic gravity code! You'll need a variable to store Vinnie's vertical velocity. When Vinnie jumps, set it to a positive value, when Vinnie is in the air, decrement from it slowly and, when Vinnie hits the ground, set it to zero. Every frame, update Vinnie's height by adding the upward velocity to his position.

I don't know if you were actually asking for help, but I like helping people! Good luck making Vinnie jump!

"I am a living, thinking entity who was created in the sea of information."
cybersamurai
21
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 6th Jan 2003 04:18
Yea, thats just about what i needed, thanks again dude

Rusty Gears
cybersamurai
21
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 6th Jan 2003 04:33
can you show me an example if you have some free time please



this is what i have in place right now, it is crude but it gets the job done

Rusty Gears
cybersamurai
21
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 6th Jan 2003 05:32
YAY, I AM HAPPY, REALLY REALLY HAPPY

I finally figured out how to get him to kick, gravity, and everything....yay ^_^

i have a game...somewhat

happy happy happy

DRINKs FOR ALL WHO HAVE MONEY TO GO BUY THEIR OWN

Rusty Gears

Login to post a reply

Server time is: 2024-11-23 20:01:31
Your offset time is: 2024-11-23 20:01:31