a sprite change to another

  • a sprite change to another sprite

    hello,

    I could help make an event to change a sprite and another sprite so the sprite continue playing again. <img src="smileys/smiley1.gif" border="0" align="middle" /> <img src="smileys/smiley1.gif" border="0" align="middle" />

  • please someone help me <img src="smileys/smiley19.gif" border="0" align="middle" /> <img src="smileys/smiley20.gif" border="0" align="middle" />

  • Animations?

  • is not an animation, I just want to change a sprite on the other of which I have in my library. for example it happens to touch an object.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Animations?

    is not an animation, I just want to change a sprite on the other of which I have in my library. for example it happens to touch an object.

  • Have you followed the beginner's tutorial and the Platform game tutorial? Simple concepts like this can be easily learned through following these tutorials.

    Also, not sure what you mean by 'library'. This isn't GameMaker, every sprite has its own image library, if you will, in its animations.

  • Have you followed the beginner's tutorial and the Platform game tutorial? Simple concepts like this can be easily learned through following these tutorials.

    Also, not sure what you mean by 'library'. This isn't GameMaker, every sprite has its own image library, if you will, in its animations.

    when I say "library" are the sprites that I created

  • If you are talking about changing one Object:Sprite (Sprite 1) to another Object:Sprite( Sprite 2); you can code it a multiple of ways.

    After the event where you 'touch' or 'collide' with it. Destroy Create Sprite 2 to the position and layer of Sprite 1, then destroy Sprite 1.

    Alternatively If Sprite 2 is always positioned to Sprite 1. At the start of the layout turn Sprite 2 invisible. Then once Sprite 1 is touch, turn Sprite 1 invisible and Sprite 2 visible.

    However, as has been suggested. An easy wasy is to have Sprite 1 form the first frame of an animation and Sprite 2 to form the second frame. At the start of the layout you stop the animation and set the frame to the fisrt. Then afte the 'touch' even occurs, you change the animation frame to the second one. Creating the illustion of the Sprites switching.

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