ramones's Recent Forum Activity

  • You could create a grid of invisible solid sprites over the water and when the player puts down a bridge tile you destroy the solid tile under it.

  • Action is a number.

    AvailableActions is text (e.g. "1,2,3,4").

    Set Action to

    int(tokenat(AvailableActions, floor(random(tokencount(AvailableActions, ","))), ","))

    example (r141)

    Explanation:

    int(tokenat(AvailableActions, floor(random(<font color="red">tokencount(AvailableActions, ",")</font>)), ","))

    tells you how many values there are in AvailableActions separated by a comma (in this case <font color="blue">4</font>)

    int(tokenat(AvailableActions, <font color="red">floor(random(<font color="blue">4</font>))</font>, ","))

    give you a random number from 0 to 3 (e.g. <font color="blue">0</font>)

    int(<font color="red">tokenat(AvailableActions, <font color="blue">0</font>, ",")</font>)

    gives you the value in AvailableActions at position 0 (i.e. <font color="blue">"1"</font>)

    <font color="red">int(<font color="blue">"1"</font>)</font>

    converts the text into a number, int("1") = 1

  • What C2 version are you using? I think that error message is a bug that was fixed months ago.

  • You should wrap the whole thing in quotation marks then if there's a space in the path.

    """" & NodeWebkit.AppFolder & "dxwebsetup.exe"""
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There was a change in r141 to the way strings are compared.

    Like naelian says, you're running the actions in event 107 way more times then necessary. In tutorial level when the 'Pulse' animation finishes, event 107 runs 26 times. That's 26 * 13 objects * however many instances of each that need to have their animation set. The animation name is "Default" and you're setting it to "default" (lower-case 'd').

    The code that compares strings to see if "default" == "Default" needs to be called hundreds of times in 1 tick. In r139 it was fast so you didn't notice it. In r141 it was changed and it freezes up (in Chrome only?). You'll see if you set the animation to "Default" instead of "default" there's no freeze.

    Here's a simplified capx that highlights the problem: setAnimationCases.capx

  • It looks the same to me in Firefox and Chrome.

    https://dl.dropboxusercontent.com/u/8367729/construct/pics/chromeFirefox.png

  • There was a change in 141 with animations and time scale. Must be related to that.

    Bug Fix

    Sprite: animations would sometimes advance a frame sooner than they ought to when changing the timescale

  • You have a 26MB folder called 'Sai 1.1.0 + brushes' inside that capx. Plus a shortcut to Photoshop among other things :) I guess everything in the project folder gets put into the capx when you do save as single file?

  • That's how containers work. If you create one of the objects then it automatically creates all of the other objects in the container.

    "Parent" and "child" are kind of misleading names. A container is a group of objects. You have a group of 2 objects - a red sprite and a green sprite. When you run the layout you get 4 groups - 1 red and 1 green in each. If you want a group of 5 objects, you need to make 4 separate green objects and add them all to the container.

  • Use bullet behavior with gravity.

ramones's avatar

ramones

Member since 17 Apr, 2012

Twitter
ramones has 4 followers

Trophy Case

  • 12-Year Club
  • x4
    Coach One of your tutorials has over 1,000 readers
  • x2
    Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

15/44
How to earn trophies