How to change the player's sprite to a completely different sprite?

0 favourites
  • 3 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • Hello! Does anyone know how to tackle this? I'm trying to get the player to remotely pilot a "drone" for a short while. I'd need to transfer control from the player's regular sprite to the drone sprite and back.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 1) Replace "Player" sprite with "Drone" sprite:

    Give both your character and drone sprites the PIN behaviour

    In your coding, whatever trigger causes the switch to occur, add "Unpin" player sprite and "Pin" Drone sprite to the player box sprite. Do the reverse for when you want to switch back

    2) For deactivating the player controls and activating drone controls:

    In event sheet, put all player controls in a group and all drone controls in a separate group.

    On the character switch trigger add "Disable Player group controls" and "Enable Drone group controls" (You'll need to disable drone controls on layout start)

    Do the reverse for when you are switching back.

    You'll probably need to control these with instance or global variables, something like player control = 1 (for player) and 0 (for drone) and add these conditions to your coding accordingly.

    If you want to keep both sprites on screen, ignore step 1.

  • Makes sense! Thank you!

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