Home
Help
Search
Calendar
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
New forum theme up and running!
Charas-Project
»
Game Creation
»
RPG Maker
»
How to make an event like the move Strength in Pokemon?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to make an event like the move Strength in Pokemon? (Read 4878 times)
evmaster
Member
Associate
Posts: 231
How to make an event like the move Strength in Pokemon?
«
on:
April 07, 2015, 05:28:24 PM »
Is there a way to make an event like pushing boulders into holes? And the boulder disappears only when it has touched the "hole spot?"
I'm guessing it has to do with variables and branches again an I'm trying to put an event together but I have never made an event that identifies an exact location. Any help is appreciated.
Logged
Prpl_Mage
Administrator
Sage
Posts: 7,644
The Administrator Mage
Re: How to make an event like the move Strength in Pokemon?
«
Reply #1 on:
April 07, 2015, 08:10:13 PM »
Well, the simple version is this.
Starting with the identify location and collision.
Set a parallel event to check the Y and X coordinates of the able rocks.
if the rock's coordinates (value of variable X and variable Y) corresponds to the hole (you can either set this up the same way or just figure out the coordinates yourself in the maker) something triggers. RPGM2k3 got this as an option, you can set a variable equal to the X coordinate of a certain event(sprite). And then another to the Y coordinate of an event.
For example, let's picture a 16x16 area. The hole is at X4 Y10. The rock start at X4 Y2. The parallel event will continuously update the X and Y varaibles of the rock.
If you move the rock one tile closer to the rock it will become X4 Y3. And the trigger/branch/precondition for your event will be "if Rock X = 4 AND if rock Y = 10". So once the rock reaches that point, bravo, sound effect, switch ON and a door opens.
Now for the actual pushing.
Basically, check what direction the hero is facing in the event and then move the rock in the same direction. With a sound effect of course.
Two ways of doing this: 1. Make the event triggered by the player pressing action button (hereby referred to as SPACE)at the rock. The rock got an "action key pressed" trigger and then checks what direction the hero is facing and moves in that direction 1 step.
2. Make the event triggered by the player moving into the rock. The rock event got a "touched by hero" trigger that does the exact same thing as the above.
To make it more like pokemon.
Add a skill, or an item or whatever works for you. When you activate it, play a sound effect or an animation on the hero. You might want to add a message as well stating that "you can now move boulders around". Then turn ON a switch called "Strength" or whatever really. For the events above, simply add the precondition that the switch "strength" needs to be ON or nothing happens. And then whenever you exit the area (in the teleport events) you turn that switch OFF.
Logged
Cool RPGM Project!
Sprite till you die
Oh my god, this was ...10 years ago...
Print
Pages: [
1
]
« previous
next »
Charas-Project
»
Game Creation
»
RPG Maker
»
How to make an event like the move Strength in Pokemon?