|
Post by Bigfoot on Apr 5, 2005 14:20:28 GMT -5
Im having a jumping problem, When my main character jumps, he can end up on top of the highest pillar in his way. here is a simpler version of my jumping script
party float 14/16 party movement bypass objects/yes party movement (direction) 1 step party movement bypass objects/no party float 0/16
I know what I'm doing wrong, but I just want to know if theres any way If I can just make the game check for objects in front of me. I made this script so my character can jump onto ledges that are shorter than a full block. but with the bypass objects on, he can end up on top of the highest script. but he cant even move past a 12/16 block without it on. I remember at the pavilion a long time ago Jugem had a solution to this problem. So if anyone can help, please do.
|
|
|
Post by BloodKnight on Apr 5, 2005 16:21:14 GMT -5
I just use an event, so that when the character steps into the event's path, it checks to see if they're in front of anything. Although I don't think you're using the same platforming system I am, so I may be of no help.
|
|
|
Post by NASH7777 on Apr 5, 2005 17:08:56 GMT -5
Oh I made an awesome jumpin scripting system for my shadow game. There might be something in it's bored but It works flawless!
|
|
|
Post by Bigfoot on Apr 5, 2005 22:35:28 GMT -5
Ill just get rid of the bypass objects, and ditch the jumping up on ledges, but keep the jumping.
|
|
|
Post by Dungeon Warden on Apr 6, 2005 11:14:53 GMT -5
Jugum created a system that would allow you to jump anywhere but you couldn't jump on things. The main problem is that if the player can jump anywhere, he can jump inside walls and past barriers. It is better if there are specific places he can jump on instead of being able to jump anywhere.
One solution is to check the X, Y (and perhaps Z) coordients of the party and have a special script run that will allow the character to move the required distance to land on that specific object. Similar objects could use the same script so this would cut down on the sripts and events that you'd need.
|
|
|
Post by Jugem on Apr 6, 2005 15:17:58 GMT -5
Jugum created a system that would allow you to jump anywhere but you couldn't jump on things. Actually, all I did was create a system that would detect if you were holding down a directional button when pressing the jump button, so that you'd know if you need to jump forward or just straight up. I didn't develop any actual jump code.
|
|
|
Post by NASH7777 on Apr 6, 2005 16:19:34 GMT -5
I have a perfected jumping system. Only that it uses an event to check if you can legally jump somewhere. You jump straight up if on a plane, one forward if elevation change is within jumping or falling distance which is a variable, or it will jump across a gap if there is. It's all about having the event check for you.
|
|
|
Post by Bigfoot on Apr 7, 2005 23:12:11 GMT -5
I just changed it from where the character can jump on command to Zelda style jumping when you run toward an edge, I just use the same event over and over that you will jump in what ever direction im facing.
|
|
|
Post by The Final Rune on Apr 8, 2005 10:12:53 GMT -5
Couldn't that cause a problem it the player hit it at an angle?
|
|
|
Post by Bigfoot on Apr 11, 2005 19:06:49 GMT -5
That did happen, so I deleted the se, sw, ne, nw, I dont need to ever jump at an angle so, that works better.
|
|