rexrainbow's Recent Forum Activity

  • WorkSheet (Update:2013/07/18)

    WorkSheet could execute function with parameters at specific time. (It's similar with "timeline" in C1.)

    You can use worksheet to describe the flow of creating enemies in tower defense or create a beat game.

    To use WorkSheet, you need to install Timeline plugin first.

    Here is an example.

    <img src="http://i1081.photobucket.com/albums/j352/rexrainbow1/screen1-31_zps8fd4d014.png" border="0">

    The step of start the worksheet are

    1. "action: start work sheet", parse a commands string and start to run these commands.

    The format of commands string is

    a. each line has a command

    b. format of command is

    time,function name,param0,param1...

    "time" is the elapsed time after "action: start work sheet" (in second).

    ex:

    1,message,3,Hi

    2,message,2,Hello

    There are two commands --

    when over 1 second after start, call function "message" with param(0)="3" (string) and param(1)="Hi" (string)

    when over 2 second after start, call function "message" with param(0)="2" (string) and param(1)="Hello" (string)

    Other feature of commands string are

    • using "//" at the line head to add a comment.
    • WorkSheet will sort commands string by "time"
    • You can use excel to create commands string, excepted using "\n" in the cell. The format of commands string is similar with csv.

    The commands string can load from external file by AJAX.

  • Document, plugin and sameple capx are included.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • theletterm

    I think "Hello, how are you?" can be parsed in this csv parser to get whole string with ",".

  • rex_function2

    passing name-value to function

    rex_function2M

    passing name-value to function, and support multiple instance to organize functions more better.

    rex_bfunction2

    A behavior version of rex_function2 plugin, to run a private function of an object.

  • Uh, sorry, I put "MoveTo" behavior in Cursor, Rotate, Drag & Drop, TouchMouse. Could you help me to add "MoveTo" into title?

  • I test again, it's fine in r67.

  • Sorry, I fix it.

    I had change my plugin-id, see this post.

  • I got it, thanks.

  • When you need a constant rotate speed. Sorry I miss this, acc =0 and dec = 0 means using max speed.

    Sin Angle mode:

    initialValue + Math.sin(dt) * magnitude

    The calculation of angle is different. (Btw, the target rotation angle may a little implicit in sine behavior)

    Ah, I forgot these. Swing behavior provide some conditions

    • "On hit start angle",
    • "On hit end angle",
    • "On hit start or end angle"

    --

    Actually, it is similar with "MoveTo" behavior -- speed up(if acc>0), hold on max speed(if still have time), slow down(dec >0).

    I made "Swing" first, then "MoveTo".

  • Swing

    (Update: 2013/05/18)

    Swing behavior rotates sprite from "Start angle" to "Start angle + Rotate Angle", then rotates back to "Start angle" repeatedly.

    <img src="http://i1081.photobucket.com/albums/j352/rexrainbow1/file-1.jpg" border="0">

    image created by gonzdevour

    Rotate Angle > 0: clockwise

    Rotate Angle < 0: anti-clockwise

  • In r67, Scirra has not yet add any cursor behavior.

    And you say the icon is the same, it maybe my old cursor plugin. I had changed the plugin-id.(See this post) You can rename plugin-id in capx followed this post.

    Sorry about that.

rexrainbow's avatar

rexrainbow

Early Adopter

Member since 4 Apr, 2011

Twitter
rexrainbow has 84 followers

Connect with rexrainbow

Trophy Case

  • 13-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies