| |
So I wanna make a variable that goes down gradualy, if a certain object is touching another
Thingy |
|

So long MFGG 2.0~
![Super Happy Heart Badge [*]](https://archive.mfgg.net/html/badges/shappyheart.gif) ![Minigame Comp Runner Up Badge (2) [*]](https://archive.mfgg.net/html/badges/mcr2.gif) ![Minigame Comp Third Place Badge (2) [*]](https://archive.mfgg.net/html/badges/mct2.gif) ![Secret Santa Badge [*]](https://archive.mfgg.net/html/badges/present.gif)

Group: Members
Posts: 1824
Member No.: 4642
Joined: 30-October 07
Status: (0d)
![[--]](style_images/mfgg2_skin/warn_nosuspend.gif)

|
| QUOTE (YoManRuLz @ Oct 5 2009, 09:56 PM) | going on with flame guy: creation event: //set the alarm, and save what the alarm is a=100 as=a
step event: //if he is in water, meter goes down, else it is full if place_meeting(x,y,obj_water){ a-=1} else{a=as} |
This is what I need, but you can switch between characters, which consists of creating the new one at the position and destroying the original.
I don't want any of that to affect the breath bar.
I'm now using this:
| CODE | if place_meeting(object0.x,object0.y,water) { breath -= 1 } else if place_meeting(object16.x,object16.y,water) { breath -= 1 } else if place_meeting(object17.x,object17.y,water) { breath -= 1 } else { breath = breath_full } |
in the alarm event on alarm 0, so it checks every 30 steps.
But it breaks because only one of those objects exists at once (except in the split second whilst switching, when there's two).
--------------------
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
[ Script Execution time: 0.0535 ] [ 13 queries used ] [ GZIP Enabled ] [ Server Load: 0.88 ]
| |