[Plugin] Time-Action Recorder and Player

Post your completed addons to share with the community

Post » Sun Feb 24, 2013 12:14 am

Time-Action Recorder and Player (TARP)
(Update: 2013/05/01)

This is a WorkSheet -like plugin, to record the time-action list then play this list.
The different between TARP and worksheet is, TARP record action in plugin , worksheet reocrd acton by external editor like notepad.
User need to install timeline first. (Update timeline plugin if user already had)


Demo
- drag at gray area to draw something
- press "Play" to play previous trace

Capx
(This capx need to install canvas.)


Usage:
A. setup
Connect to timeline by action: "Setup" (event 1)

B. recorder
1. call action: "(recorder) Start" to start recording. (event 4)
2. call action: "record" to record action with current time. The interface of recorded action is the same as function object. (Call this function with these parameters) (event 5)

C. player
1. action: "(player) Load" to load time-action list (Expression: "RecorderList") (event 6).
User could save RecorderList into webstorage then load it at next time.
2. call action: "(player) play" to play time-action list. It will run action by call function object.



Another taptap capx.rexrainbow2013-05-01 16:03:52
B
110
S
28
G
280
Posts: 4,487
Reputation: 156,566

Post » Sun Feb 24, 2013 3:39 pm

So, this can be used to record the players movements, then replay them?
B
30
S
8
G
3
Posts: 366
Reputation: 6,302

Post » Sun Feb 24, 2013 11:47 pm

@InvaderX

It records actions by storing "function call" (function name and it's parameter). Not to save the full moving path (sprite.X ,sprite.Y).
B
110
S
28
G
280
Posts: 4,487
Reputation: 156,566

Post » Mon Mar 04, 2013 1:42 pm

Cool, that could be usefull for asynchronous online multiplayer battles.
B
45
S
11
G
4
Posts: 517
Reputation: 7,398

Post » Thu Apr 11, 2013 2:52 pm

uhm, this is very interesting :)
B
139
S
26
G
21
Posts: 520
Reputation: 25,296

Post » Thu Apr 25, 2013 11:07 am

Forgive my ignorance, i downloaded your examples with timeline and canvas plugins and i got

B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Thu Apr 25, 2013 11:15 am

@Joannesalfa

Ooops, I will check the plugin later.
B
110
S
28
G
280
Posts: 4,487
Reputation: 156,566

Post » Thu Apr 25, 2013 11:35 am

@Joannesalfa

I had updated these two capx, please download them again.
B
110
S
28
G
280
Posts: 4,487
Reputation: 156,566

Post » Thu Apr 25, 2013 7:35 pm

Thanks!

I edited TapTap version, at first it's missing setup timer.

So both examples worked.


I would like to know, is possible to download JSON where i record gameplay as platform and put JSON code in demo scene?
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Fri Apr 26, 2013 5:01 pm

@Joannesalfa

The record data could be got by "Expression:RecorderList". It's a JSON format string.rexrainbow2013-04-26 17:02:12
B
110
S
28
G
280
Posts: 4,487
Reputation: 156,566

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 0 guests