[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
97
S
22
G
176
Posts: 4,109
Reputation: 103,021

Post » Sun Feb 24, 2013 3:39 pm

So, this can be used to record the players movements, then replay them?
B
29
S
7
G
3
Posts: 361
Reputation: 6,187

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
97
S
22
G
176
Posts: 4,109
Reputation: 103,021

Post » Mon Mar 04, 2013 1:42 pm

Cool, that could be usefull for asynchronous online multiplayer battles.
B
42
S
11
G
4
Posts: 505
Reputation: 7,267

Post » Thu Apr 11, 2013 2:52 pm

uhm, this is very interesting :)
B
123
S
19
G
16
Posts: 487
Reputation: 21,498

Post » Thu Apr 25, 2013 11:07 am

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

B
96
S
25
G
20
Posts: 3,052
Reputation: 22,638

Post » Thu Apr 25, 2013 11:15 am

@Joannesalfa

Ooops, I will check the plugin later.
B
97
S
22
G
176
Posts: 4,109
Reputation: 103,021

Post » Thu Apr 25, 2013 11:35 am

@Joannesalfa

I had updated these two capx, please download them again.
B
97
S
22
G
176
Posts: 4,109
Reputation: 103,021

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
96
S
25
G
20
Posts: 3,052
Reputation: 22,638

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
97
S
22
G
176
Posts: 4,109
Reputation: 103,021

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest