[Behavior] Timer

Post your completed addons to share with the community

Post » Wed Nov 23, 2011 3:38 pm

Document, plugin and sample capx are included.

Compared with official timer behavior
There are some different between this timer behavior and official timer behavior.
1. This timer behavior has "Repeat" parameter for each timer. Official timer only has once or infinity mode.
2. This timer behavior could still be running when setting time-scale of this instance to 0 (Set "Sync timescale" to "No"). Official timer will be paused when time-scale to 0 .
3. This timer might trigger "Condition:On time-out" many times in a tick. Official timer only trigger "Condition:On timer" once mostly. For example, set time-out to 0.01 and run infinity. This timer will trigger "Condition:On time-out" 100 times in 1 second. Official timer will trigger "Condition:On timer" 60 times in 1 second.
4. "Condition:On time-out" of this timer will be triggered for each instance. "Condition:On timer" of official timer will be triggered for those instances which time-out in this tick, so that it need add "Condition: for each" to pick each instance.
Last edited by rexrainbow on Wed Sep 24, 2014 10:02 am, edited 3 times in total.
B
97
S
22
G
179
Posts: 4,125
Reputation: 104,557

Post » Wed Nov 23, 2011 4:40 pm

wow another one. Keep'em coming!
B
12
S
5
G
5
Posts: 80
Reputation: 3,572

Post » Wed Nov 23, 2011 5:16 pm

Nice job rex!

BTW, when are you going to write @Kyatric's "Make My Game" plug-in? Wastrel2011-11-23 17:18:20
Don't see the fnords and they won't eat you!
B
75
S
16
G
12
Posts: 322
Reputation: 11,608

Post » Thu Nov 24, 2011 2:20 pm

@Rex

im having trouble with starting this plugin

i put function,timeline and timer in pluginfolder put it gives an error

thx for the great plugins!


http://dl.dropbox.com/u/36224287/rextimer.jpg

http://dl.dropbox.com/u/36224287/plugings.jpg
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Thu Nov 24, 2011 2:25 pm

Put function,timeline into plugins\ folder.
Put timer into behaviors\ folder. Timer is a behavior for all instances of one sprite object.rexrainbow2011-11-24 14:25:59
B
97
S
22
G
179
Posts: 4,125
Reputation: 104,557

Post » Tue Mar 06, 2012 2:43 pm

I can't choose the timer options in sprite actions. I put the Timer in behavior- and function and timeline in plugins-folder. But there is no possibility to add an timer action. The objects are added in project.
B
3
Posts: 3
Reputation: 331

Post » Tue Mar 06, 2012 7:47 pm

Ok, problem ist resolved. It was to easy my mistake.
B
3
Posts: 3
Reputation: 331

Post » Wed Mar 07, 2012 2:43 am

@Radmir

Glad to hear that.
(Sorry, I still can not catch your problem.)
B
97
S
22
G
179
Posts: 4,125
Reputation: 104,557

Post » Wed Mar 07, 2012 8:27 am

It was simple. I forgot to add the behavoir timer to my sprite. So i did not had the functionality. All works fine now.
B
3
Posts: 3
Reputation: 331

Post » Wed Mar 07, 2012 9:01 am

@Radmir

Anyway, thanks for using Timer behavior.
B
97
S
22
G
179
Posts: 4,125
Reputation: 104,557

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests