How do I - Change the apperance of a sprite [SOLVED]

0 favourites
  • 5 posts
From the Asset Store
Simplistic hyper-casual game with nature elements. Tap to switch between the 4 elements and reach a better score.
  • Hi

    Following on from my last post "How do I - Move toward another sprite" , now the enemy sprite overlaps the target sprite all good. However the next behaviour is that while the enemy sprite is overlapping for a period of time, after a given time the target sprite needs to start changing its apperance.

    I first tried using the is overlapping event and then place a wait seconds action and then stated to change the sprite for another. This did just that but then the enemy sprite disappeared and on running this through the debuger it look as though changing the sprite to another seemed to create more memory

    Is there a better way of changing the apperance of a sprite either with another sprite or by changing its colour etc.

    Thanks

    TimCS

  • scirra.com/tutorials/413/direction-based-sprite-animation

    Thanks 99Instances2Go , trying to get used to how construct 2 works over other game engines that I have tried. They all seem to do these things differently. So would using the method of spawning another object only work to a) replace the existing one and b) any other object attached to it also be removed?

    From other software there has been a change image action but I presume the animation is the same ?

    Thanks

    TimCS

    p.s. it is making such a difference to me with the prompt and helpful replies over other forums that I have been on

  • Ah yes.

    You can also use an animation to present frames as stills.

    Just set the speed of the animation to zero.

    Now you can use sprite > action > Set frame

    Notice that everywhere there is an index (a frame"s number = an index) it is ZERO BASED.

  • Try Construct 3

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

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

    You can also use an animation to present frames as stills.

    Just set the speed of the animation to zero.

    Now you can use sprite > action > Set frame

    Notice that everywhere there is an index (a frame"s number = an index) it is ZERO BASED.

    Okay thanks for the heads up, basically the same principle as an array then So i will need to set the target images with a series of frames that can imitate the stages of the targets when they change their state.

    Thanks again 99Instances2Go

    TimCS

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)