LittleStain's Forum Posts

  • There is no reason to bump your thread, you could have just edited your post..

    I'm not really sure what effect you are really trying to achieve and why you use the paster plugin for this..

  • I'm not really sure what you mean by "blocks in corners"

    The only reason an "on collision" event doesn't fire is if there is no collision..

    You might want to try "is overlapping at offset" or add a one pixel detection sprite around you object and check "is overlapping"..

  • Quick solution

    put event 52 as a subevent of event 54 and make sure none of the other events setting animation run when EnHP > 0

  • When mirrored the angle of the object is still the same..

    so left is still 0..

    so if you set the angle towards the mouse it rotates about 180 degrees and as such is upside down..

  • I guess

    on touched object

    object physics give impulse at angle : angle(touch.x,touch.y,object.x,object.y)

    would do the trick

  • Do you mean "is overlapping" or "is overlapping at offset"?

  • uppercase(text)

    Convert the given text to all uppercase.

    https://www.scirra.com/manual/126/system-expressions

  • I'm not sure what you mean..

    If all layouts are the same size you could just create the sprite on start of layout at the y-position it was in the last one, or you could make the player global and all you'd have to do is set it's x-position..

  • question: are animation/frames better then sprite objects? in what way?

    each of my sprite object already includes two sometimes three animations...

    Ok 100 sprites with two or three animations seems a bit much to me, but I'm sure you know what you are doing..

    Are animation/frames better? No

    Would it be a lot easier to do what you ask in the first post? Yes

    Like I said, have a look at the third party plugin "Nickname" it can probably do in your case, what I would try to do with animations/frames..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok..

    I'm not sure why you use the variable String inbetween..

    I don't see any event changing the array-size, or did you mean setting it inside the editor?

    Also I'm not sure why you seperate event 13,14,15 and 16

    But I can't see why this would work on android and not on iOS..

  • But you might mean something along these lines:

    Shoot Reload Max-Min

  • Well it shouldn't, because the 0 in the clamp expression I gave you is the minimum value..

  • change the plus to a minus?

    clamp(ammo-30, 0, 200), should work fine..

  • Does this only happen after export to Ios?

    Could you share your events?

    You are talking about arrays, variables and localstorage..

    I guess you are saving the array AsJson, which should include the size of the array, if I remember correctly..

    Are you retrieving the variables from the Array in the right way?

  • These are expressions, you use them inside your event and/or actions..

    so instead of:

    system set ammo: ammo+30

    or

    system add to ammo: 30

    you use

    system set ammo: min(ammo+30,200)

    or

    system set ammo: clamp(ammo+30, 0, 200)

    you could also use your normal way and add an every tick event setting ammo to clamp(ammo, 0, 200), that way it can never get below 0 or above 200..