RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Jumping [RESOLVED(YEAH!)]

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 88
Legend of Mana Fan
I'm making a forest using the sunny forest tileset. In the forest there is a river. But there is no tile for making a bridge! So, I used these water lilies for a stepping stone. But I messed up. Anyone here know how to do it so that when the player presses the action key, it jumped to the water lily.

Thanks,
« Last Edit: February 18, 2007, 12:53:08 AM by magic2345 »
Game I'm Working on:
-ADVENT-
Progress:
Story: 96%
Maps: 4%
Characters: 70%

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
use the set move route command in events
Watch out for: HaloOfTheSun

***
Rep:
Level 88
Legend of Mana Fan
I tried using that but when I jumped to the 1 lilypad and wanted to jump to the 2 lilypad and tried pressing the action key, nothing happens and I can't get out of the lily! Here is the code:

<>Conditional Branch: If Player sprite facing right
<>Move Event: Player
:           : Phasing On (so that the player can go through the lilypad
:           : Jump (+2,0)
:           : Phasing Off

Is there anything wrong with that?

Thanks,
Game I'm Working on:
-ADVENT-
Progress:
Story: 96%
Maps: 4%
Characters: 70%

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
post a screenshot of the page in event layer and lable where you want to jump/land
Watch out for: HaloOfTheSun

***
Rep:
Level 88
Legend of Mana Fan
I'm sorry but I can't put pics as I need to upload them and thats the same as downloading, the internet in my country is very expensive so I cant upload. Please, can you just tell me how to do it? I know I sound selfish but Please,

Thanks,
Game I'm Working on:
-ADVENT-
Progress:
Story: 96%
Maps: 4%
Characters: 70%

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
can you download a small demo I just made for you? it wil explain everthing easy, its added to this post download if you can, if not I will explain by words
Watch out for: HaloOfTheSun

***
Rep:
Level 88
Legend of Mana Fan
Hey, thanks! that explains everything! But whats the layer priority thing for? And when I landed on the ground (not the lily pad) on the left side, when I press right and then press space bar, the thing just stand there, I need to walk to left 1 square then walk right 1 square then jump. Any remedies for this?

Thanks for making the demo, but maybe you could use words now?

Thanks again,
Game I'm Working on:
-ADVENT-
Progress:
Story: 96%
Maps: 4%
Characters: 70%

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
weird, I had no problems at all going back to the right side landing and turning and jumping.

can someone else download demo and try it?
Watch out for: HaloOfTheSun

***
Rep:
Level 88
Legend of Mana Fan
Maybe its because I use PK? But can you tell me what the layer priority thing is for?

Thanks,
Game I'm Working on:
-ADVENT-
Progress:
Story: 96%
Maps: 4%
Characters: 70%

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
lost? what layer thing? XD
Watch out for: HaloOfTheSun

*
Rep:
Level 102
2014 Biggest Narcissist Award2014 Biggest Forum Potato2014 Best Non-RM Creator2013 Best Game Creator (Non-RM)2013 Best IRC ChatterboxParticipant - GIAW 112012 Most Successful Troll2012 Funniest Member2012 Best Use Of Avatar and Signature space2012 Best IRC ChatterboxSecret Santa 2012 ParticipantProject of the Month winner for November 2009For being a noted contributor to the RMRK Wiki2010 Most Successful Troll2010 Biggest Forum Couch Potato2010 Best IRC Chatterbox
weird, I had no problems at all going back to the right side landing and turning and jumping.

can someone else download demo and try it?
I downloaded it and tryed it. It works fine. I also have PK edition.

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
so it works then...magic, try it once more...
Watch out for: HaloOfTheSun

**
Rep: +0/-0Level 88
I beat Twilight Princess faster than you
The problem with this is that you can jump into unpassable terrain. How would you stop the player jumping into terrain he can't usually move in/out of?
Current Project ~ Avatar: The Last Airbender RPG
Just as a note, I fully understand variables and switches, so there's no need to treat me like a noob :D

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
on the terrain use an event and turn the switch off for jumping...anywas that demo only lets you jump at one time does anyone want a jump all the time demo?
Watch out for: HaloOfTheSun

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
If you changed the passability of the lily pad to passable, then you could remove the part that turns through on and off in the event and just switch on in the move event "ignore if can't move". That way it'd only work if the place you are jumping to is passable terrain.

Sorry for interrupting the topic Nouman, I know you have it covered, but I just thought that that might help Arkhan.

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
Modern, no need to say sorry  :D
you are here to help as am I, all ideas are welcome.
Watch out for: HaloOfTheSun

***
Rep:
Level 88
Legend of Mana Fan
Nope, stil can't do it...Weird..Thanks though..Anyway, modern algebra, more explanations?

Thanks,
Game I'm Working on:
-ADVENT-
Progress:
Story: 96%
Maps: 4%
Characters: 70%

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
I don't know how much I'll be able to help if you couldn't understand what Nouman did, but I'll try. The Player On Top thing that Nouman did was to make it more generally applicable I think, but in the case of the lilypads it won't make a difference. I'm not exactly sure what it is that you want. Do you want to be able to jump at any time? or just at certain areas? because that makes a bit of a difference in the ways you can event this. In any case, just tell me what you want, and I'll see if I can help a little more.

Quote
when I press right and then press space bar, the thing just stand there, I need to walk to left 1 square then walk right 1 square then jump. Any remedies for this?

This is after you've activated jumping? That's strange, because the event is set up so that the ability to jump is never really deactivated, however the reason that this might be occuring is because the Control Switch is inside the conditional branch, thus it will only activate if you approach the event from the left. Outting it under the conditional branch would change that. Anyway, post if you're having more trouble.

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
he only want's to be able to jump in that one spot not all over, thats why it should be set up so you cant jump at any given time only when you touch the event to jump onto the lily pads.
Watch out for: HaloOfTheSun

***
Rep:
Level 88
Legend of Mana Fan
What do you mean by outing it?
I followed what Nouman did
Code: [Select]
<>Conditional Branch: Player facing right
  <>Switch[997:Jumping]=ON
  <>message: Press Spacebar to jump
 :Else Handler
  <>Switch[997:Jumping]=OFF
Does outing it means to just erase the conditional branch and just turn on the jumping switch? I don't want the player to can jump all the time, I want it to just jump there...

Thanks,
Game I'm Working on:
-ADVENT-
Progress:
Story: 96%
Maps: 4%
Characters: 70%

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
EDIT
What I meant by outting it was to place the control switch: 001 ON command outside the conditional branch in the event. This, as Nouman pointed out, would make it so that jumping would be available everywhere once you've stepped on the event, which you don't want, thus it would not work. Thus, just ignore that first post of mine.
END EDIT

This being the case, I'd prefer not to use a common event then, because as it is you can walk on to the event, then walk off of it and jumping wouldn't deactivate. I'd just use local events (Action Key activated) like this: (this only works if you set the lilypad to passable. If you have some reason for them not being passable, post and I'll rework it)

On the left bank
Code: [Select]
Conditional Branch: Player is facing Right
   Set Move Route: Player
       Jump (+2, +0)
Branch End  

On the right bank
Code: [Select]
Conditional Branch: Player is facing Left
   Set Move Route: Player
       Jump (-2, +0)
Branch End  

on the lilypads:
Code: [Select]
Conditional Branch: Player is facing Right
   Set Move Route: Player
       Jump (+2, +0)
Branch End  
Conditional Branch: Player is facing Left
   Set Move Route: Player
       Jump (-2, +0)
Branch End  

It probably looks confusing so I included a demo. It looks like it would be a lot of work because you would have to put events like this everywhere you want to be able to jump, but it's just copying and pasting. Plus it removes the necessity to conditionalize if the player decides not to jump after he approaches the place where he can. Again, the lilypad has to be set to passable in the database before this will work.
« Last Edit: February 18, 2007, 12:48:43 AM by modern algebra »

***
Rep:
Level 88
Legend of Mana Fan
YEAH! IT WORKS!
Thanks for taking the time to help me,
Game I'm Working on:
-ADVENT-
Progress:
Story: 96%
Maps: 4%
Characters: 70%