Recently, I needed a Moving Platform for my game. Earlier, I got it working perfecto! Then I was suggested by Falcon to make a tutorial, and now I'm making it
Ingredients:Four variables
Basic knowledge of RMXP
Stages:1. First make four variables to be prepared.
Without these, this entire tutorial will be for nothin...
2. To start, make a brand new Event. Then make another page by pressing the 'New Event Page' at the top of the event thing. Also, make them both parallel process. Before you finish, make the second page have a condition of Self Switch A or somethin like that.
3. These next few instructions will be for the first page.
A. Put into the event something like...
@> 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
4. Make a conditional branch about whether the 'Players X' variable is equal to that of 'Platform X'. There should be no 'else' in this branch. Then into it make another conditional branch inside the first one, but this one should have a 'else'.
B. Into the first part of the conditional branch add somethin like (First bit is rather pointless) ---
5. In the 'else' on the conditional branch add ---
Your result should be somethin like -
With these added you should be able to get the moving platform to move downwards four times, with or without the player on it. In order to get it to go backwards, just re-add everything again but change everything with says 'Move down' into 'Move up'... Oh and put it on the next page, so that something doesnt happen and screw it up. This is somethin like makin it look like -
Credits -
Me
Aliensoldier
Modern AlgebraIf weren't for these people this wouldnt be here.
Found bugs - Non moving. Read the third post in order to see this bug and fix it.