Page 1 of 1

Help anyone

PostPosted: Thu Mar 01, 2012 1:13 pm
by stemersni
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

Re: Help anyone

PostPosted: Thu Mar 01, 2012 6:58 pm
by skydereign
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.

Re: Help anyone

PostPosted: Fri Mar 02, 2012 2:31 pm
by stemersni
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 ><

Re: Help anyone

PostPosted: Mon Mar 12, 2012 7:33 am
by skydereign
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.