Animate a countdown (3,2,1,GO!)

Get help using Construct 2

Post » Sat Jan 25, 2014 3:22 pm

Hi all,

After alot of confusion about Construct 2 and animations i am not sure what the best way is.

What i'm up to is a countdown.. You know.. The basic 3 , 2 , 1 , GO!

Now i want the numbers go from big to small.

Now can some one tell me what the best way is to reach this goal.

As far as i can think of now i have to make a animation with alot of images that are smaller every time. This isn't the only way to do it right?

Thanks in advance!

++++++++++++
END RESULT! Thanks all.

LINK TO RESULT

DOWNLOAD FILEAllardje2014-01-25 16:18:29
B
10
S
4
G
3
Posts: 163
Reputation: 2,507

Post » Sat Jan 25, 2014 3:32 pm

One way:
4 animation frames changing every x seconds you want with with sine behavior.

and there are many more ways to do what you wantshinkan2014-01-25 15:33:28
ImageImageImageImage
B
157
S
64
G
41
Posts: 2,590
Reputation: 34,640

Post » Sat Jan 25, 2014 3:39 pm

My first thought was to use sprites.

so you would have your sprite created , wait 1 second, next sprite created...
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,812

Post » Sat Jan 25, 2014 3:41 pm

You got me right there! I never looked in to behaviors pretty much. Never knew of SINE.

Thanks! Works like a charm :)!

For other people..

Behaviors > Sine
Movement: Size
Wave: Sawtooth
Period: 1
Magnitude: 300

Than you get a perfect countdown! ( you have to delete objects and create etc after some seconds but thats just some playing around. )

Allardje2014-01-25 15:43:30
B
10
S
4
G
3
Posts: 163
Reputation: 2,507

Post » Sat Jan 25, 2014 3:56 pm

add text object
initial visibility invisible


add event:

every 1 second
condition: compare text.txt equal to 0 - invert
condition: compare text.txt equal to "GO" - invert

action: set text.txt =   int(text.txt) - 1
action: set text visible

sub
     condition: compare text.txt equal to 0

     action: set text.txt = "GO"
     action: wait 1 sec
     action: set text invisible
     action: set text.txt = 0



The above is a functional countdown timer with only a text object.

As soon as you set text.txt to anything bigger then 0, then it appears and starts counting down to 0 and says Go.





Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,552

Post » Sat Jan 25, 2014 4:01 pm

Drat - too late !

anyway !

edit - forgot to say it would need better graphics !RamPackWobble2014-01-25 16:03:27
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,812

Post » Sat Jan 25, 2014 4:05 pm

[QUOTE=RamPackWobble] Drat - too late !

anyway !

edit - forgot to say it would need better graphics ![/QUOTE]

I always like your effects side of things rampack :) nice approach :)
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,552

Post » Sat Jan 25, 2014 4:14 pm

I also now updated my first post with a link to the result.

Thanks guys!
B
10
S
4
G
3
Posts: 163
Reputation: 2,507

Post » Sat Jan 25, 2014 4:53 pm

@allardje - nice effect but the 1 is going a bit wrong ? (At least on this cheap android tab)

lennaert - thank you.
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,812

Post » Tue Mar 25, 2014 1:10 pm

You have to change the 1's wait statement to 0.5 seconds and it works (or at least looks better).
B
25
S
10
G
3
Posts: 154
Reputation: 2,838

Next

Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, ksiads and 4 guests