ArcadEd's Forum Posts

  • Here is an example using a function and a boolean instance variable.

    Toggle Sprite Visible / Invisible

  • What's happening is that set of code is constantly running, so when you click and deactivate it, the next line of code says oh it's deactivated, activate it. Next time you click it does the same thing.

    I'll try to whip up a example.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You have to create some events to reset everything. Usually done on Start of Layout. Reset global variables, etc.

    I hope that makes sense.

  • So put your character, with the scrollTo behavior, on the screen where you want it to start. If you want to start at the bottom, place it there in design time, when you start the game that is where it will start.

  • <img src="http://content.screencast.com/users/ArcadEd/folders/Jing/media/e73946aa-8e5c-452c-8e29-d7ac1381d21c/2013-06-12_1445.png" border="0" />

  • Sure, create some global variables like deadX and deadY. When the player dies, set deadX to player.x and deadY to player.y

    Or if you need to save more than one location, use an array.

  • For #1, I wouldn't use the build in editor to create sprites. Create them in an external program like GIMP, Photoship, etc.

    2. Yes, using the Node-Webkit export allows you to create standalone apps for Windows and Mac destkop.

  • Give the green slime an instance number variable called health

    When bullet collides with slime, subtract 1 from health

    When health is 0, call your end of level events.

    For level 1 set health to 1

    For level 2 set health to 2

    etc.

  • Do you have Snap To Grid turned on? When you resize objects, it resizes based on the grid snap, so maybe that's it?

  • You did it right, not sure why it doesn't work for you.

    From the manual:

    random(x)

    Generate a random float from 0 to x, not including x. E.g. random(4) can generate 0, 2.5, 3.29293, but not 4. Use floor(random(4)) to generate just the whole numbers 0, 1, 2, 3.

    random(a, b)

    Generate a random float between a and b, including a but not including b.

  • OK, I figured it out. That's exact what it does, which is what I thought but I couldn't get it to work right :).

  • I'm not sure I am understanding how the Array.Sort action works in construct 2.

    If I have an array with a width of 10, populate it with 10 numbers, then sort it. Should it rearrange all the array values in ascending order?

    So if Array.at(0) = 200 and Array.at(9) = 100, should it move 100 to index 0 if 100 is the lowest number of the 10?

  • As mentioned in the Platform Tutorial, you really should use an invisible block as the collision for the player, and then pin the actual character sprite to it.

    Talks about it on page 4

    http://www.scirra.com/tutorials/253/how-to-make-a-platform-game/page-4

  • Well it's just a matter of stopping everything that is going on. Then putting it all back in motion when you unpause.

    There is a pause plugin in the plugin forums you can try, but I will usually just do it manually. Putting code in Groups can help with this, for example if all of your controls are in a group, when you pause you can deactivate that group.

  • Global Variable DAMAGE

    On collision with player: Set DAMAGE to int(random(100))

       If DAMAGE > 0 and DAMAGE <= 80 then - 20 from health.

       If DAMAGE > 81 then - int(random(10,20)

    80 percent chance to get 20

    20 percent chance to get 10-19