ArcadEd's Forum Posts

  • 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

  • Click on the object, and click on Instance Variable in the properties window.

    <img src="http://content.screencast.com/users/ArcadEd/folders/Jing/media/ab4b5bf1-6a82-4ed3-9d6e-071d6634354d/2013-06-03_2043.png" border="0" />

    You can also set an instance variable while you have the family object highlighted. That instance variable is true for all objects that are part of the family. And will also show up in the image above.

  • You might want to start out going through the platformer beginner tutorial on the tutorials page. It's basics will really help out.

  • Well AI is a tough thing. The follow the player, you will want to use the Distance expression to check if the player is within a certain distance of slime, if so change the slime's actions.

  • What part of the health bubble actually animates? Does the liquid flow around, or the reflection bubble animate?

    To answer your question. Anytime in your game when the Mana goes down, set the mana frame = to the global variable (if that is how you are doing it). Think of the code moving top to bottom, so set the frame after you alter the global variable.

    Does that make sense?

  • You might need to go through the steps of building manually in Eclipse using phonegap. I don't believe there would be any restrictions then.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm not sure if this it what you are asking or not.

    Global variable StartX, EndX

    On Touch Start set touch.x to StartX

    On Touch End set touch.x to EndX

    Compare StartX and EndX

    Or is it going to be using Y coordinates as well?

    In that case, you could create a hidden sprite at Touch, then create a hidden sprite at touch end. Then check the distance using the distance expression, then destroy the two hidden sprites.

  • I shrunk the detector sprite down to 24px from 33px and it started working. I think the issue is having the detector the exact same size as the good and awesome blocks.

    Maybe play around with that?

    If that doesn't work you could use the distance expression to check how close the detector is to the center of the block when the key is pressed.