ramones's Forum Posts

  • When you destroy a sprite it doesn't get destroyed until the next top-level event. So the 'HealthBar' sprites destroyed in event 13 aren't really destroyed until event 20.

    What happens is:

    Event 13 flags the 5 HealthBar sprites to be destroyed and creates another 5 HealthBar sprites on top of them.

    Event 14 sets the animation frames correctly for the first 5 sprites which are going to be destroyed.

    At event 20 the 5 sprites are destroyed, leaving the 5 new sprites which haven't had their animation frames set.

    (Also in event 15 it should be playerLife/2 in the first condition)

    Nimtrix Creating the health sprites on start of layout wouldn't let you dynamically change the maxLife like in the arcade example. But if he doesn't need to do that then it would probably be better. Destroying and recreating the sprites every tick doesn't seem like a great idea.

  • When you're entering a string into a text field you need surrounding quotation marks but you also need to replace any quotation marks inside the string with double quotation marks.

    <hr />

    "{""c2array"":true,""size"":[19,11,1],""data"":[[[""tile_impassable""],[""tile_impassable""],[""tile_impassable""],[""tile_impassable""],[""tile_impassable""],[""tile_door""],[""tile_impassable""],[""tile_impassable""],[""tile_impassable""],[""tile_impassable""],[""tile_impassable""]],[[""tile_impassable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_impassable""]],[[""tile_impassable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_impassable""]],[[""tile_impassable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_impassable""]],[[""tile_impassable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_impassable""]],[[""tile_impassable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_impassable""]],[[""tile_impassable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_impassable""]],[[""tile_impassable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_impassable""]],[[""tile_impassable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_impassable""]],[[""tile_door""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_door""]],[[""tile_impassable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_impassable""]],[[""tile_impassable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_impassable""]],[[""tile_impassable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_impassable""]],[[""tile_impassable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_impassable""]],[[""tile_impassable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_impassable""]],[[""tile_impassable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_impassable""]],[[""tile_impassable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_impassable""]],[[""tile_impassable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_passable""],[""tile_impassable""]],[[""tile_impassable""],[""tile_impassable""],[""tile_impassable""],[""tile_impassable""],[""tile_impassable""],[""tile_door""],[""tile_impassable""],[""tile_impassable""],[""tile_impassable""],[""tile_impassable""],[""tile_impassable""]]]}"

  • That's what families are for. If you have a C2 licence you can create many types of aircraft and add them all to the same family. If you're using the free version then having one sprite with different frames/animations for each type of aircraft is the way to go.

  • Just set the object's opacity to 0 and it will start invisible.

    Yeah,

    WebStorage: Set local key "dict" to Dictionary.AsJSON

    Dictionary: Load from JSON string Webstorage.LocalValue("dict")

  • No it's not an action. It's in the properties bar on the left when you have the sprite selected, where you set speed, acceleration, deceleration etc.

  • Compare two variables: Circle.count = 0

    -> go to layout

  • No prob, glad you got it working. Another thing: look at the platform properties for the enemy and set 'default controls' to 'no'. Then pressing left/right/up won't make the enemy move/jump too.

  • 0. Save your project as a single file and share the capx instead of zipping up the project folder.

    1. Put a 'platform: is on floor' condition alongside the 'on D pressed'.

    2. You have to set the PlayerImages sprite 'mirrored' or 'not mirrored' depending on which way he's facing. Actually you're already doing that with walking but for some reason you set him 'not mirrored' when playing the hit animation.

    3. Change 'D is down' to 'on D pressed'. And change 'on D released' to 'playerimages: on animation "hitforward" finished'.

    4. Give the 'on animation finished' event a subevent: 'platform is moving -> set animation to "walk"' like you've done for 'on landed'.

  • You can either set unbounded scrolling to true in project properties and then you can travel as far as you want in any direction. Or you can have a fixed size layout and when the player gets to the top you move them and the platforms back down to the bottom. It's seamless so it appears the player is constantly moving upwards. That's what the examples in this thread did but they don't seem to be working anymore.

  • You could make 'totalHealth' a local variable and it would be reset each tick. A static variable keeps it's value.

  • <img src="https://dl.dropbox.com/u/8367729/construct/pics/setspeed.png" border="0" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can use CustomMovement instead of Bullet for fast moving objects. Use the 'On CustomMovement step' trigger to check for collisions every step and adjust the 'pixels per step' setting to increase accuracy. With 'pixels per step' set to 1 you can check for collisions every pixel (though that would be overkill in most cases).

    customMovementBullet.capx (r108.2)

  • Have a look at the enemy movement part of the platform tutorial.

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

    Page 7.

  • Also, in the meantime, what can I do to figure this out? Is there a easier way than just looking around in the forums?

    https://www.scirra.com/manual/106/plugin-reference

    There's a list of the standard plugins on the left.