Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> invincibility, Using GM
United States
phazonluigi
Posted: Jan 2 2008, 09:19 PM
Quote Post


^^The Metroid M&L Project has Re-Initiated Launch.^^


Group Icon
Group: Members
Posts: 784
Member No.: 4889
Joined: 1-January 08

Status: (0d) [--]


Not so long ago I was working on a project (about mario)and the game included invincibility but i did not work in that area so I want to know:
How do you do invincibility in Game Maker 7.0 PRO?I want it to have a timer and everything but not to complicated you know?well thanks!

~its-ame


--------------------
CODE
THE CCC IS ****

These Projects Are the **** be sure to check em out:
user posted image
user posted image
user posted image
user posted image
Thanks to luigis #1 < Cuz he is.
PMEmail PosterMSN
Top
United States
Mike Shinoda
Posted: Jan 2 2008, 09:50 PM
Quote Post


Aka Artic
[*][*]

Group Icon
Group: Members
Posts: 802
Member No.: 3598
Joined: 12-April 07

Status: (0d) [--]


if you mean like when you get a star
my way:
execute code in step event:
QUOTE
if invi > -5
invi -= 1
if collision_rectangle(x,y,x,y,obj_star,1,1)
invi = "whatever you want(must be a number value)"
//put this in collision with obj_enemy(other.alarm[0] is its "enemy killed" event)
collision_rectangle(x,y,x,y,obj_enemy,1,1)
{
if invi > -5
other.alarm[0] = 1
else
"your event here"
}

if you mean after your hurt
execute code in step event:
CODE
if invi > -5
invi -= 1
//put this in collision with obj_enemy
collision_rectangle(x,y,x,y,obj_enemy,1,1)
if invi >
{
"your event(s) here"
}

I didn't test iit, but it should work.


--------------------
rain.

AKA Artic

I'm gonna miss you ol' pal. See you guys in the 3.0.
PMEmail PosterUsers WebsiteIntegrity Messenger IMAOLYahooMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0358 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.42 ]