Polpoy's Recent Forum Activity

  • edit: mistake

  • I'm not a math expert, so I think my expression is not so good, but you can try this. Find a X coordinate, then Y according to X:

    Add a global variable ("randX").

    Condition: System -> Every X seconds ->

       Action: Set randX to random(0,LayoutWidth)

       Action: System -> Create object -> Monster, layer 1, randX, randX<ViewportLeft(0) | randX>ViewportRight(0) ? random(0,LayoutHeight) : choose( random(0,round(ViewportTop(0))), random(round(ViewportBottom(0)),LayoutHeight) ).

    You may have to adjust viewport layer numbers, and rounds.

    Look at the manual for more details (expressions, system expressions)

  • I'm not sure it's the best method but you can do a thing like this:

    Add a global variable (called "timer" for example).

    Add en event: Every tick and transform variable = 1, add value dt (not set!) to "timer". Why ? Because sum of dt = 1 every second (deltatime tuto).

    So if you want to stop transformation after X seconds, check every tick if "timer" >= X. If true, set transform variable to 0.

    or maybe this, better and simpler but dunno if it works:

    when transform variable is set to 1, add two other actions : wait X seconds, and set transform to 0.

    edit:

    it works ! find here a very simple example:

    .capx

    T to transform, Space bar to fire.

  • Short version:

    You can use sprite's animations and variable.

    Edit your sprite, add another animation (with some Fire Mario frames).

    In event sheet, when transform is on, set your sprite's animation to the good one. Then set a sprite's variable to 1 if needed to detect the transform.

    If press fire button and this variable is 1 ==> launch fireball !

  • same question

  • Layer's properties are also important. Force own texture to Yes. You can create mask and combined with canvas plugin, you can do really good things.

  • Yep, very nice. I love the graphic style, the wheel idea and the name ! Good job.

  • nothaseo

    Nice time scale use and Dragon Ball style, like that !

  • I used the marvellous R0J0hound's canvas plugin to do a kind of circular counter (may be useful for a reload effect). Blend mode source in, draw arc in canvas and paste sprite. I don't know if there is a better method to do this.

    DEMO

    Capx

    (sorry for bad english !)

    update :

    Ok, I did it with a better method, I think.

    Create a layer with Force own texture to Yes.

    Add the circle sprite, then the canvas on top, and set its Effect Property to Destination in.

  • Another inspiration Making an Interactive Treasure Map Tutorial

  • When you set your text in event sheet :

    myText : Set text to zeropad(myVariable, 3)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Great news ! Is fullscreen available with node ?

Polpoy's avatar

Polpoy

Member since 27 Sep, 2012

None one is following Polpoy yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies