Time passed

For questions about using Classic.

Post » Sun Aug 23, 2009 9:57 pm

Hi,

I have one question. How to make for example this:

After 1 minute passed player will be transfered to another layout.
Ok I set timer.... but how to make, that after one minute it transfers player to other layout?



Thank you :)
B
2
G
3
Posts: 28
Reputation: 906

Post » Sun Aug 23, 2009 10:07 pm

my construct crashes when I add a timer (99.4)
if anyone else has this problem, please report back and I'll report it as a bug

but how it's supposed to work, is that you Start timer in an action, which you say you did

then you insert the event "on timer"
by inserting event,
going to your sprite, and then to the timer

in this condition you add the needed actions
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sun Aug 23, 2009 10:10 pm

Ok I try, but I'm not sure that I understand you clear....
B
2
G
3
Posts: 28
Reputation: 906

Post » Sun Aug 23, 2009 10:21 pm

[size=100:3o5s3fy6]first, insert an event:[/size:3o5s3fy6]

[size=100:3o5s3fy6]
then choose the sprite, or whatever object has the timer behavior on it
[/size:3o5s3fy6]


[size=100:3o5s3fy6]then make sure to click on the timer tab
and insert the On Timer event[/size:3o5s3fy6]


[size=100:3o5s3fy6]after you tell it the name of your timer, you will have an On Timer event
add any actions to this event that you want when the timer is up
[/size:3o5s3fy6]
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sun Aug 23, 2009 10:32 pm

I know I'm stupid but... ok...


I set up timer event, but how to make now that after for example.... 5seconds that event will change layout?
B
2
G
3
Posts: 28
Reputation: 906

Post » Sun Aug 23, 2009 10:53 pm

[quote="RoboBox2":3ewli0yt]Hi,

I have one question. How to make for example this:

After 1 minute passed player will be transfered to another layout.
Ok I set timer.... but how to make, that after one minute it transfers player to other layout?



Thank you :)[/quote:3ewli0yt]
use Timedelta for getting seconds passed, one minute is like 60 sec so.
something like this cap
http://rapidshare.com/files/270706161/timer.cap.html

EDIT: there was no lucid's post when I started posting :mrgreen:
u're better off with his/her advices :D

but do try my cap, its fun :mrgreen:
B
24
S
7
G
3
Posts: 138
Reputation: 2,795

Post » Sun Aug 23, 2009 11:03 pm

[quote="hellwalker":3dgak4q4][quote="RoboBox2":3dgak4q4]Hi,

I have one question. How to make for example this:

After 1 minute passed player will be transfered to another layout.
Ok I set timer.... but how to make, that after one minute it transfers player to other layout?



Thank you :)[/quote:3dgak4q4]
use Timedelta for getting seconds passed, one minute is like 60 sec so.
something like this cap
http://rapidshare.com/files/270706161/timer.cap.html

EDIT: there was no lucid's post when I started posting :mrgreen:
u're better off with his/her advices :D

but do try my cap, its fun :mrgreen:[/quote:3dgak4q4]

Oh, I think I understand your example.... I will try to do like in yours .cap :)

Thanks
B
2
G
3
Posts: 28
Reputation: 906

Post » Mon Aug 24, 2009 12:47 am

Why not just use a function?

blah blah blah condition
>call function "title screen" after delay of 6000ms

on function "title screen"
>got to layout 3
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests