Topic: Jumping Help
|
|
|
Sniper FenRoxas <3member: postin' posse    total posts: 535 since: Aug 2007
|
 Jul 20, 08 at 11:22am
Jumping Help
|
I want my character to be able to jump when the A button is pressed. So I have a common event and everything, and it works. He jumps two things over in the direction. But because I'm using. >through on >jump +1,0 >through off
He can totally go anywhere on the map by jumping.
How can I make him able to jump over only certain things? Like, still be able to jump over stumps and everything without be able to go through anything?
|
quote quick quote edit quick edit del report
|
|
Members, log in or register to remove these ads.
|
starphantomNo more sprite requests atm :Phigh on "N"     total posts: 809 since: Jul 2006
|
 Jul 21, 08 at 3:18pm
re: Jumping Help
|
I'm slightly confused on what your saying...
Ignore impossible moves may be able to solve what your saying...
if theres a specific thing in your way that you don't want to jump, make a hero touch that disables your jump near that item...
otherwise, I have no idea what you're trying to say, further explanation please 
-------------------
 Sprite Requests: Sage Ellison (X 2)
|
quote quick quote edit quick edit del report
|
Sniper FenRoxas <3member: postin' posse    total posts: 535 since: Aug 2007
|
 Jul 22, 08 at 4:47pm
re: Jumping Help
|
If your on a bridge, perhaps, and there is an obstacle on the bridge that requires him to jump over it. He can jump over it.
Because if he jumps into empty space beside the bridge, he will land on an impassible tile. From there, all you need to do is make him jump again and he will land on another impossible tile, thanks to the through.
So because you can jump on anything anywhere, the jumping thing has no point.
|
quote quick quote edit quick edit del report
|
starphantomNo more sprite requests atm :Phigh on "N"     total posts: 809 since: Jul 2006
|
 Jul 25, 08 at 5:55pm
re: Jumping Help
|
I have no idea what you mean by through...I can't jump on impassible tiles :S...
all I can say is ignore impossible moves...
otherwise, I actually have no idea what you mean...
-------------------
 Sprite Requests: Sage Ellison (X 2)
|
quote quick quote edit quick edit del report
|
arion_orion
|
 Jul 25, 08 at 6:39pm
re: Jumping Help
|
The basic idea behind a jump feature, is to jump over impassible tiles, by temporarily setting the player's settings to "through" allowing the actor to walk on impassible tiles. While i don't remember if that is even necesary to "JUMP" over tiles, the landing would be an issue.
The first thing that would come to mind, is to disallow the player to jump to certain areas, with a variable check on the actor's coordinates. I think it could be complicated though.
-------------------
 Arion's advice now comes with FREE charges! Thats right, pay a fee to hear me blab!
|
quote quick quote edit quick edit del report
|
SamotByte me..member: postin' posse     total posts: 560 since: Sep 2007
|
 Jul 26, 08 at 12:15am
re: Jumping Help
|
I suggested she used this:

(the 'player's map X' is supposed to be 'Player's terrain tag')
It makes the player jump 1 tile back when it landed on an impassable tile, marked by the terrain tag 7. Could be inserted in a seperate event on parralel process.
To check two tiles ahead, you have to make a common 'ghost' event, which walks two tiles (to the place you want to jump) ahead, and then you have to compare the terrain tags of that 'ghost' event with the terrain tag that's set to be impossible. If it is, the player can't jump.
That'd lag if done with events.
I'm 100% sure there's a jumping script somewhere.
-------------------
 Project thread here.. Dangling Bucket
|
quote quick quote edit quick edit del report
|
BreadfanWilling to work for lessforum raider     total posts: 2596 since: May 2005
|
 Jul 26, 08 at 2:22am
re: Jumping Help
|
You guy's are thinking too hard. Just set the jump command to ignore impossible moves.
Edit: oh and, why are setting through on?
This message was edited by Breadfan on Jul 26 2008.
-------------------
|
quote quick quote edit quick edit del report
|
SamotByte me..member: postin' posse     total posts: 560 since: Sep 2007
|
 Jul 26, 08 at 11:36am
re: Jumping Help
|
Because otherwise you can't jump over impassable tiles.. Or can you?
I never tested that. I s'pose it's possible.
-------------------
 Project thread here.. Dangling Bucket
|
quote quick quote edit quick edit del report
|
| [All dates in (PT) time] | Threads List « Next Newest Next Oldest » |