LittleStain's Forum Posts

  • I guess it's personal preference..

    I tend to use DOM-elements during creation and testing, but replace them with Sprites and the like before "publishing"

    Just like I replace all text-objects with the sprite-font object..

  • The issue here is, that the button object isn't rendered inside the canvas.

    It is a "DOM"-element that "floats" above..

    That's why it will always be above sprites, even if you try to change the z-order..

    It's also the reason why moving it has different results than moving objects that are rendered inside the canvas..

  • I guess I understand what you are trying to do, but you are trying to load a game from a slot, but you haven't saved anything to that (or any other) slot..

    You do have a localstorage called "point_keys" but it's hardly any use in this case, because the variable points is already set to that before going to the second layout..

    What you could do for example is use a dictionary object and set it to the framenumbers, save it to local storage and set the animationframes from that..

  • Did you see the infinite jumping example?

    Could you tell what about that example doesn't meet your needs?

  • You mean something like

    set text = localstorage.itemvalue

  • Problem Description

    Everytime I try to export a project to html5 I get this message:

    Construct2 closes automatically after pressing abort.

    Attach a Capx

    Happens with every capx, even the templates included with Construct 2

    Steps to Reproduce Bug

    • Open project
    • Choose export to Html5
    • Disable minify

    Observed Result

    Project fails to export, Construct2 closes.

    Expected Result

    Exported Project.

    Affected Browsers

    This is not Browser related.

    Operating System and Service Pack

    Windows 10

    Construct 2 Version ID

    Construct2 beta release r214

  • i guess you could save the variable to local storage?

  • Did you check your collision polygon?

  • Did you put the lifebar on a layer with 0,0 paralax and scale rate 0?

  • I could think of numerous ways to do this, depending on how you have your events/movement set up right now..

    What movement behaviour are you using?

  • You were setting the target every tick to a random position..

    So every tick the target changed..

    I've send you a pm with corrections..

  • I might not understand the question,

    but the event/action is:

    Ajax on completed - Array load : Ajax.Lastdata

  • I guess you'd have to creat a player on collision with object event..

    If you want the player to bounce of of the object, using the bullet behaviour as described above should work perfectly, if implemented right..

    Another way would be to use any other kind of movement behaviour, or even code your own movement..

    Just be sure to disable user input for the normal behaviour..

    to push something on collision, you could add the pin behaviour..

    Adding an is pinned, player set speed to 0.5 * the normal speed or something..

    There are so many ways to achieve the wanted results, depending on your needs and wishes, you'd have to be more precise as to what you want and how your events are set up right now, to get a better explanation..

  • have you checked the blendmodes example from the new project dialog?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Also a simple event like:

    Sprite.width > 200

    -- sprite set width : 200

    Does the trick..