Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> trying to dodge the boulders, causing damage with a moving boulder
kevindadcaly
post Feb 2 2012, 12:57 PM
Post #1


Level 1
Group Icon

Group: Member
Posts: 8
Type: None
RM Skill: Undisclosed




I made a room full of boulders and I want my guy to try to get through it without getting hit. The problem is I cant figure out how to cause the damage to my guy when he gets hit.

This post has been edited by kevindadcaly: Feb 2 2012, 12:57 PM
Attached File(s)
Attached File  boulder.jpg ( 99.59K ) Number of downloads: 5
 
Go to the top of the page
 
+Quote Post
   
supercow
post Feb 2 2012, 05:59 PM
Post #2


Level 15
Group Icon

Group: Revolutionary
Posts: 280
Type: Artist
RM Skill: Undisclosed




use the event command - change hp - decrease hp ?
if you want hp damage appear visually like number of hp appeared, then use a script or some sort , i know a few but not sure if its allowed to post here or not.

ps. the boulder moved magicaly?
Go to the top of the page
 
+Quote Post
   
Jens of Zanicuud
post Feb 2 2012, 11:50 PM
Post #3


Dark Jentleman
Group Icon

Group: Local Mod
Posts: 904
Type: Scripter
RM Skill: Skilled
Rev Points: 120




You should set the event to Collision trigger and set it as supercow said.
Otherwise, you could trigger it in parallel process, set phasing mode on and set it as below:

#comment: calculate X difference
>Variable[1] = This event X
>Variable[1] -= Player X
#comment: calculate Y difference
>Variable[2] = This event Y
>Variable[2] -= Player Y
#comment: setting branches
>Conditional Branch: Variable[1] == 0
>>Conditional Branch: Variable[2] == 0
#comment: deal damage (this is an example)
>>>Change HP - Entire party: -50
>>End
>End

If you set every boulder as above, it should work. I've used something similar many times...
You can use the very same two variables for every boulder.
I know it seems strange, but I enure you it works smile.gif

Jens

Jens

This post has been edited by Jens of Zanicuud: Feb 2 2012, 11:52 PM


__________________________
"Thorns are the rose's sweetest essence..."
-Jens of Zanicuud


Games I'm working on:
>

official website: TryAdIne eFfeCt

>

Games I worked on (mainly as a scripter):
>
(Warning: it's a 3rr3's project and it's in Italian!)


Awards

Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 24th May 2013 - 10:47 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker