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.

Code Snippets / Simple jumping-and a little collision- snippet.

Author
Message
Freddy 007
20
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 16th May 2005 09:04 Edited at: 16th May 2005 09:14
Hi

I've been messing around with some small jumping snippet I got from Aura(thanks for that ), and I've been experimenting with some different things. Finally, I ended up with this:



There's a short description of the program in the snippet, but basicly, it's an (hopefully) easy to understand-code, that can handle jumping, and collision from above(when the player jumps onto another object, they will collide).

Mind you, this is my first try on this kind of thing, so go easy on me, all right?

Thank you.

KLU 007


[EDIT]
Problem fixed. Should work fine now.

*** PANZERGAMES ***
Freddy 007
20
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 16th May 2005 11:22
Here's an update :



Now, (with help from Aura) I've built in real collisions. Not just if you jump on top of an obstacle. it runs with a smooth framerate, and the hole code is still remmed, so you should be able to understand this.

Enjoy

KLU 007

*** PANZERGAMES ***
Kurai kaji
20
Years of Service
User Offline
Joined: 12th Jan 2005
Location: in my room
Posted: 17th May 2005 04:50
wow thats a cool one

be what you can't be.
Freddy 007
20
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 17th May 2005 20:01
Thanks

I hope that you'll find it usefull

I might make a little game, to make this more interesting, as it doesn't seem like people bothers about this

*** PANZERGAMES ***

Login to post a reply

Server time is: 2025-05-17 02:38:52
Your offset time is: 2025-05-17 02:38:52