Sign Lights

Get help using Construct 2

Post » Sat Mar 08, 2014 8:48 am

Hello,
I am working on a sign that will have flashing lights on it. The border of the sign has a series of "lights" comprised of two sprites...one with the light off and one with the light on. Here is an example:

On - Off - On - Off
|-------------------|
Off----Sign------On
|-------------------|
On - Off - On - Off

I thought I could use an event that for every 1 second, the "on" sprite is destroyed an an "off" sprite is spawned in its place. At the same time, the "off" sprite is destroyed and replaced with an "on" sprite. I've tried a few different ways, but the only result I get is for the sprites to be destroyed. Nothing is spawned in their place.
B
3
Posts: 9
Reputation: 243

Post » Sat Mar 08, 2014 9:08 am

Need help? Upload .capx file with your question.
B
16
S
4
G
2
Posts: 233
Reputation: 2,560

Post » Sat Mar 08, 2014 10:04 am

If I understand you right - would you not be better just using a simple animation ?

(for example - no laughing at the graphics !) :)

If you are looking at something more complex then I think more information/capx is needed.
You do not have the required permissions to view the files attached to this post.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,832

Post » Sat Mar 08, 2014 10:16 am

I took a look at using animations, but thus far in my experience with this program (I'd say maybe around 6 or 7 hours at this point total), I'm not sure how to use them. I have two images/sprites. I just want to swipe one out for the other and vice-versa repeatedly.

Thanks again.
B
3
Posts: 9
Reputation: 243

Post » Sat Mar 08, 2014 2:21 pm

why not set animation to loop and speed to 1 sec. or so?
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Sat Mar 08, 2014 3:32 pm

Look at this and see if you can learn from it
You do not have the required permissions to view the files attached to this post.
B
250
S
39
G
15
Posts: 1,953
Reputation: 40,623

Post » Sun Mar 09, 2014 4:45 am

Thanks, guys. I was able to figure out how to use animation to solve this problem.
B
3
Posts: 9
Reputation: 243


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 57 guests