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.
Moving Platform [RESOLVED]

0 Members and 1 Guest are viewing this topic.

****
Rep:
Level 88
In my game I'm hoping to install a little area where the player has to go on a platform to bring them to the other side.
I thought I had it done, but there were 2 problems... :(

The problems are -

1. The player can't go onto it, no matter what...
2. Even when I press CTRL and go onto it, it just moves without moving the player...

I simply need to be able to get the said problems into the solved part... Here are the two pages used:

Spoiler for Page 1:
Spoiler for Page 2:
Actually, when I look at it now... Im not surprised it failed miserably... :(

Also, I'm attempting to not use a script for this. I mostly only want events.

******
Revolution is not a bed of roses.
Rep:
Level 91
Project of the Month winner for July 2009
I don't think you can do that without a script, but consider this:

Make the platform a character set, then paste the hero on top of it. Set the hero's graphic to that sprite, and you have a platform with the hero on it ;)

*
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
Or just set the player's sprite to fixed, and move the player with the event in separate Move Event commands.

****
Rep:
Level 88
FALCON - A prob with that way, I havent got the heroes graphics yet. If I cant do it without a script, then can you direct me to one?

IROCKMAN1 - It sounds like it would work, but I dunno how to do that  ;9 Got a screeny or somethin like zat?

******
Rep:
Level 89
Let's attack agressively.
oh it's simple look:

Make a new event with the desire graphic, and put first a move player event with Through ON and move right. Put in a Wait 20 frames, and put the moving event for both the event and the hero must have one more than the event.



NOTE: The hero's speed must match the events speed, so if you need to reduce it and put the speed back where it was.

Then put a Wait for Moves Completion and then a Self Switch A ON and do the same but the opposite directions.



Then just put the Self Switch OFF and there you go, a moving platform.

EDIT: If you don't want the hero's graphic to move during that just put a Stop Animation ON  on the move event and on the end of it turn it OFF.
« Last Edit: March 29, 2008, 05:21:23 PM by AlienSoldier »

*
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
Well, Falcon's way is the most certain - but Irock's way is good too, and AlienSoldier's is also good. Though, I assume you want the platform to always be moving, and so you can't hero Touch it - you might need to check player location instead, like so:

Code: [Select]
@> Control Variables: [XXX: Player X] = Player's Map X
@> Control Variables: [YYY: Player Y] = Player's Map Y
@> Control Variables: [XYZ: Platform X] = this Event's Map X
@> Control Variables: [ZZZ: Platform Y] = this Event's Map Y
@> Conditional Branch: Variable [XXX: Player X] == Variable [XYZ: Platform X]
  @> Conditional Branch: Variable [YYY: Player Y] == Variable [ZZZ: Platform Y]
    @> Set Move Route: This Event
     :                             : Move Down
     :                             : Move Down
     :                             : Move Down
     :                             : Move Down
    @> Set Move Route: Player
     :                             : Move Animation Off
     :                             : Move Down
     :                             : Move Down
     :                             : Move Down
     :                             : Move Down
     :                             : Move Animation ON
     :                             : Move Down
  @> Else
    @> Set Move Route: This Event
     :                             : Move Down
     :                             : Move Down
     :                             : Move Down
     :                             : Move Down
  @> Branch END
@> Branch END

That should do it roughly... It might not be entirely aligned though. I haven't actually done anything with it, that is just my assumption.

******
Rep:
Level 89
Let's attack agressively.
It's easier if you put a Custom Movement on my event. I'll work the same.

*
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
That'd work too.

****
Rep:
Level 88
Well yes. I resolved this case. Thing is, I didnt use either of your works... I used them both.

To get it working without a single glitch I had no choice but to combine both of your techniques!

Alien - It works, but It only works when then the player is on it.
Modern - It sort of works but Its hard to work with when getting it to go back and forth.

So, in the end I just took the working parts from each, and muddled them up!.. And added and removed a coupla things.

These were my results -

Spoiler for Page 1:
Spoiler for Page 2:

It works perfecto! Thing is, who do I credit? Modern or Alien?.. Or both?

*
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
No credit is necessary, at least on my part.

******
Revolution is not a bed of roses.
Rep:
Level 91
Project of the Month winner for July 2009
If you have it working correctly, you should consider putting a tutorial, I've seen this question asked many times.