Advanced topdown platformer jump system

Started by ramza1337, April 05, 2012, 08:23:32 pm

Previous topic - Next topic

ramza1337

Does anyone know of an advanced jump system?
I have been trying to make an system, and I'm getting it worked out, and pretty sure I can. Though the common events will be absolutely huge. :facepalm:

Basically what I have in mind (Ideally) is pasting common events over the map, that draw imaginary squares relative their coordinates, and if the player intersects these coordinates it sets the players elevation variable, to the events elevation variable.
Now when the player jumps(pushes a), it sets a new variable jump height, to that players elevation. And each of these tiles has gravity built in, so say if I jump to a new area, it will have a cond branch that says, if jump height is greater then events elevation, moveanimationoff movedown, subtact one from jh etc.
Now, it seems that I will have to designate a perimeter and specify each possible outcome, because it's not working right. the jh seems to subtract out of time with the player moving down. I want it to happen at the same speed. Nevertheless, if I have too, I will use a less elegant method.
I could not figure out how to get an independent gravity event working period to avoid all the clutter. :O.o:

Also, I think possibly I may need to take the perimeter of the square area into account anyways, since the sprite can seemingly jump from sea level to the highest clifftop if the tiles are close enough.

I've heard quite a bit about blizz's scripts while browsing the web, and I was wondering if there is a more elegant solution.

Ideally, I can copy paste these elevation events throughout the map, specifying their area, (or l and w if rect.) and elevation.
Seeing as it is somewhat of a topdown platformer, making copies and copies of the cliff graphics and using terrain tags doesn't really work as it is too hecting and ultimately limited. Or messing with passability. Does anyone know if such a system has been devised? Better yet, based on pixel (like with pixel movement scripts, a pixel jump script??) or can be evented simply?

I know I will get it in the end, :ninja: I was just wondering if anyone has any suggestions.
Thankyou!  :haha:

Seltzer Cole

April 12, 2012, 08:23:37 am #1 Last Edit: April 12, 2012, 08:25:36 am by Seltzer Cole
Your post really confused me for a second. I am assuming you are trying to get elevation set to variables across your map so it can limit the players jumping? Why don't you try making it through common event only? All you would have to do is when players presses 'whatever button' it calls the common event, and you can use variables to keep track of the players X and Y. Simply make other variables within the common event that keep track of all the rest of the maps elevation by useing the cliffs X and Y's. You will need to manually click around the map though to see where elevations climbs and falls to set those variables up. With conditional branches you could then limit the player.

Sorry if I confused you, but I might try doing this also, just for fun. I will let you know what I come up with.

Edit : I don't think you should be saying gravity. I think you mean limiting the players height of his/her jump correct?
You know you play video games to much when you put sunglasses on and whisper "Plus 10 Appearance"

If at first you don't succeed, call it version 1.0