Help - Search - Members - Calendar
Full Version: Boulder on switch
RPG RPG Revolution Forums > Game Engines > RPG Maker VX Discussion
Rastanatsta
I've made a boulder that moves away from the player. Here are some things I need please. smile.gif

1) A boulder that goes on an event to make a treasure chest appear.
Something like (Boulder on event 1)?

2)A boulder that rolls down the screen, passes through the main character yet still deals damage.

Thank you smile.gif
LaDestitute
http://www.sendspace.com/file/nmwlxw

As for the second, make the boulder Through and put the Deal Damage in it's event box. For it's move commands, set custom and either give it a back and forth path or following the player, though the second would seem weird.
LOL I'M A BOULDER THAT FOLLOWS YOU
oldmangreg
QUOTE (Rastanatsta @ Feb 11 2010, 11:02 AM) *
I've made a boulder that moves away from the player. Here are some things I need please. smile.gif

1) A boulder that goes on an event to make a treasure chest appear.
Something like (Boulder on event 1)?

2)A boulder that rolls down the screen, passes through the main character yet still deals damage.

Thank you smile.gif



For your first one I will give you the link to a tutorial on here. Yes it says block but same concept.
http://www.rpgrevolution.com/tutorial/[intermediate]-move-a-block-on-a-switch-to-activate-an-event_134.html


For the second one, if you are making it an event:
1. Set up an event that will make the boulder appear, called "Boulder Touch Event" or something and make sure the trigger is set to player touch
2. make another event with a graphic of a boulder and make sure the box that says through is on.
3. go back to the first event. Insert an event command called Set Move route and make sure the upper left hand box is set to your boulder graphic.
4. set the move route of the boulder in any direction you want, but make sure at the end it touches your player
i.e. B+++++P
B=boulder
+= spaces
P=player
( In this example the boulder will move five spaces right)
make sure the wait for completion box is unchecked.
5. click ok.
6. Now insert a new event command called "Change HP" should be on first tab.
7.Adjust the settings however you like.
8. click ok.
9. insert one last command called set move route. have the boulder still go in the same direction but you can choose how fat it goes.

Rastanatsta
That's great thank you!

The only thing is that for the second point I want it so that you can avoid the boulder (IT goes down in straight line). This means it won't deal damage. The route you showed me ensures I take damage at the end of the animation.

Thanks again.
Sparrowsmith
Just as easy as the first for the second.

Assign a variable x and a variable y to the boulders coordinates, but also apply two variables to the players co-ords.
Now make Oldmanregs event, but stop at step 6.
instead, make a THIRD event.
This third event will assign all of your variables to the correct coordinates, then (using con branches) check if:
boulder x = player x
boulder y = player y

if yes to both of the above, it does damage and makes a noise or something.
FINAL STEP

on the same event make another conditional branch (after the players one) that checks if the boulder has gone past a certain line.
say after 5 rolls you want the boulder to go back to the top of the 'hill', take the coordinate for the 5 rolls point. After the boulder reaches this point [type in coordinate] it will be re-spawned at the top of the 'hill' [set event location]

Now just make sure the move route for the boulder is on repeat.
happy.gif hope this is clear, I'll make you a demo in the meantime.
Rastanatsta
Thank you! You explained it very well! smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.