Change the color of object when it touches a powerup

0 favourites
From the Asset Store
Simplistic hyper-casual game with nature elements. Tap to switch between the 4 elements and reach a better score.
  • I've put a fix in where you set a player level based on the colour combinations and an overlap check so that it doesn't keep trying to change the colour while it is overlapping, so you must pull the player away and overlap again.

    https://www.dropbox.com/s/6c4w7k63wxknf ... 2.c3p?dl=0

  • I've put a fix in where you set a player level based on the colour combinations and an overlap check so that it doesn't keep trying to change the colour while it is overlapping, so you must pull the player away and overlap again.

    https://www.dropbox.com/s/6c4w7k63wxknf ... 2.c3p?dl=0

    Thank you!! <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" />

  • I've put a fix in where you set a player level based on the colour combinations and an overlap check so that it doesn't keep trying to change the colour while it is overlapping, so you must pull the player away and overlap again.

    https://www.dropbox.com/s/6c4w7k63wxknf ... 2.c3p?dl=0

    Hi, is it possible to change the color of the splatter as well? As you can see in the video, when the player touches an enemy, the player exploses in a paint splatter. However, I don't know how to change the color of the splatter. For example, a blue player will leave a blue splatter behind of they touch an enemy!

  • Hiya, for this I would rename it to Splatter, and have the animations set up for the colour so "white" "blue" "green" etc in the same way you did with the player. Then in your condition for enemy overlapping player, spawn Splatter, set Splatter animation to player.colour. So if player.colour is "blue", it will spawn Splatter with animation "blue", they can be related easily.

  • Hiya, for this I would rename it to Splatter, and have the animations set up for the colour so "white" "blue" "green" etc in the same way you did with the player. Then in your condition for enemy overlapping player, spawn Splatter, set Splatter animation to player.colour. So if player.colour is "blue", it will spawn Splatter with animation "blue", they can be related easily.

    Hello again! I did the following, but the Splatter doesn't appear when the Enemy touches the Player.

    The event sheet: imgur.com/a/s9e3O

    Here's the new Construct 3 file: 1drv.ms/u/s!Avdx1jR_xUQngbUUaC7JviT0MylI5Q

    Have a wonderful day! <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hiya, it won't be to do with the event sheet if you used my file. I had to delete the layer with the splatters on so I could edit the file, I am a Construct 2 guy. You'll have to just copy the logic from my shares into your own project.

  • Hiya, it won't be to do with the event sheet if you used my file. I had to delete the layer with the splatters on so I could edit the file, I am a Construct 2 guy. You'll have to just copy the logic from my shares into your own project.

    Hello! It's been a while! I decided to create individual sprites for the splatters. (I know that it's tedious, but it was the only way I know to do it. Sorry!)

    However, there is a problem with the violet transformation. Basically, if you go to blue, then red to create violet, it won't go to tertiary colors! Strangely enough, if you go to red first, then blue, the violet player can go through tertiary colors!

    Here's the game in case you would like to see the issue for yourself https://www.dropbox.com/s/mi7obg0g80b58 ... 4.c3p?dl=0

    Thank you for everything! <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

  • Hi, in event 51 you need to add a set level to 1 action.

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