LittleStain's Recent Forum Activity

  • What are we supposed to see in this image that will help with your question?

    The action you are looking for is:

    text object - set text :"bladibla"

  • The answer is in the manual:

    Note WebStorage only stores strings. If you set a key to a number like 100, when you retrieve it back it will be a string. To convert it back, use the system expression int, e.g. int(WebStorage.LocalValue("score")).

  • While pressing z:

    It would consist of checking the distance between player and enemy..

    If the enemy is within reach, depending on the behaviour you want to use, set either it's vector or angle towards the player or simulate pressing right/left/up/down..

    Increase the sucking power (speed of the enemy towards the player) depending on the distance..

    Shouldn't be that hard if you know a bit about programming with construct2

    But seeing this is your first post, you might want to follow some tutorials first, just to get the hang of things..

  • Could you explain what you mean by going to a different layer and going back to the main layer?

  • It seems you aren't able to reference sprite_02 and/or sprite_01 at that specific time..

    Wait 0 makes sure this action will be executed after all actions (in this specific tick) and as such after the create action, which makes the referencing of the sprites possible..

    wait 0.5 will therefore never be needed..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sprite on collision with wall

    Sprite animation = "red"

    sprite destroy

  • Adding a wait 0 seconds action before pinning makes it work..

    (That way the pinning action will be performed after all other events in the sheet are)

  • I'm not sure having 48 frames in 8 different animations would be that big of an issue, but if this works for you, go for it!

  • Why would you want to avoid animation-frames?

    If you have a good reason, there are always other ways..

    Sprite.colour wouldn't make much sense btw, for most sprites consist of more than one colour..

    You could always make an instance-variable colour for your sprite, but the question would again be how you change the colour of that sprite (if animation(frames) are out of the question)

  • No but you can reference the framenumber, animation, And if you use the hue effect it's parameters..

    If for any reason, these ways won't work for your intended purpose, there is the third party plugin canvas which has a rgbAt expression if I'm not mistaken..

  • That question can only be answered if we know in what way you give the sprite the colour..

  • Although I'm not sure if this would work with physics and I doubt using physics is the wisest decision in this particular case, using the system action set object timescale, for a certain amount of time could get you this effect..

LittleStain's avatar

LittleStain

Member since 26 Apr, 2011

Twitter
LittleStain has 4 followers

Trophy Case

  • 15-Year Club
  • Email Verified

Progress

16/44
How to earn trophies