Help anyone

Talk about making games.

Help anyone

Postby stemersni » Thu Mar 01, 2012 1:13 pm

Hi! I would like to ask for help on how to make an actor blink? like for example when the enemy passes or hits the character, it should blink.. anyone can help me pls? thanks :D
stemersni
 
Posts: 4
Joined: Fri Jan 06, 2012 3:59 pm
Score: 0 Give a positive score

Re: Help anyone

Postby skydereign » Thu Mar 01, 2012 6:58 pm

You mean like this? http://game-editor.com/forum/viewtopic.php?f=1&t=11542&p=81233&
It's a bit more complex than it needs to be though, so if you'd like a simpler version just ask.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Help anyone

Postby stemersni » Fri Mar 02, 2012 2:31 pm

yea i've tried that one but the problem is, when i insert the code in the collision event between the player and the enemy,the level of transparancy only changes.. it doesn'tblink ><
stemersni
 
Posts: 4
Joined: Fri Jan 06, 2012 3:59 pm
Score: 0 Give a positive score

Re: Help anyone

Postby skydereign » Mon Mar 12, 2012 7:33 am

Here's probably the easiest way. When the player collides with the actor, have something like this.
Code: Select all
collide.transp=1; // sets the other actor to be invisible
CreateTimer("Collide Actor", "blink_timer", 500);

Then in that actor's timer event for blink_timer, reset transp back to 0. If you want it to blink several times, you'll need to create an actor variable to hold the number of remaining blinks. If you need more explanation on that just ask.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest