EMA2826's Forum Posts

  • 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">

  • You forgot to add "Player invincible=0" condition to your "Player on collision with enemy" event on the screenshot.

    When invinicble is not 0, the collision will simply be ignored.

    Thank you! It worked!!

  • BadMario dop2000

    Game so far: dropbox.com/s/pv31ciycluvco ... 2.c3p?dl=0

    Hello, I did all those things separately and even together and it doesn't seem to work (probably did it incorrectly once again. Sorry!). It's so strange that such a basic game mechanic can be so hard to implement. Is it a problem related to Construct 3 itself, by any chance?

    Have a nice day!

  • You could just use another condition in your damage thingy. If player not flashing ( assume that is an animation ) damage = OK.

    So as long as it is flashing it will not pick up any damage

    Hello, the character flashing is part of a behavior. When you say "damage = OK", are you talking about a variable?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hiya, you can use a condition so when you get hit during the 1.5 seconds, for example set a variable to 1 then back to 0 after 1.5. Then under your damage event you add the condition when variable = 0, so when variable is 1 during that 1.5 seconds you cannot be damaged.

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

    I'm not sure I understand. I did the following:

    The save file: dropbox.com/s/j5mna8o404m85 ... 9.png?dl=0

    I probably did this incorrectly... The character still can take damage after being hit but it takes 1.5 seconds for the hearts to disappear and the splatter to appear.

  • Hello, I would like to know how to make the player invincible for a short while after they touched an enemy. They'll be flashing for 1.5 seconds and cannot be damaged during that time. I couldn't find the answer in other posts about the subject...

    Here's my game so far: dropbox.com/s/tutthxjv3of0l ... s.c3p?dl=0

    Have a nice day/night!

  • 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" />

  • 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!

  • 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" />

  • The problem or the fix for the problem? Better to take it into a PM with me as this will just spam the thread and I don't know if you are beginner.

    Unfortunately, I cannot PM you beause of a lack of Rep points. I'm the definition of a beginner; never designed a game before this!

    I understand the problem (I actually figured it out after my last message), but I don't really know how to fix it!

    Have a good day!

  • Hi no problem I'll try and explain it the best I can. Basically when you are yellow and touch the blue, it changes your colour to green yes, but because you are still overlapping and your colour changed to green it instantly makes true the overlapping blue while green, so changes to b.green. If you disable the events for the tertiary you will see that secondary now works as expected. You will need to add some logic so that it checks one time for the overlap! Or you can do it a number of ways, only change to secondary colour on first overlap, wait for the player to no longer overlap, then change a variable that allows for tertiary combination. If you can't work out something then let me know, I can see what logic could do it if I have the time.

    Hello plinkie! I don't think I fully understand what you mean...

  • Oh okay, I find it better to have the colour as a variable on the player and then set the animation based on the variable name. I have made you a file here to demonstrate it, if you have any problems let me know.

    https://www.dropbox.com/s/sc2tlsffl50jt ... 1.c3p?dl=0

    Your events look ok but that would only work if you were overlapping the blue circle when your animation is yellow. In the video you are overlapping the yellow circle when your animation is blue. Possibly you are saying that change in animation to green was not working, there could be another reason for that. Check out my logic anyway it should help you with the use of conditions.

    First and foremost, I want to thank you for taking the time to make a file for me! <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" /> However, it might just be me, but the player transform into tertiary colors when they're blue/red/yellow. For example, when the player is yellow and touches the blue powerup, they become teal (blue-green)

    Here's the game in question: 1drv.ms/u/s!Avdx1jR_xUQngbRtUqm14Aw_P1-3QA

  • Hiya, could you explain what the issue is with the game in the video? It looks like it is doing what I would expect it to do, you overlap yellow and he turns yellow etc. Overlapping is simply checking when the collision polygon of one object overlaps with the collision polygon of another, the 'is overlapping' condition is true when that overlap occurs.

    Hello, in the beginning of the video, the player touches the Blue powerup. Then, the now blue player should be green when they touch the yellow powerup. Blue + yellow = green, like mixing real paint!

    Have a good day

  • If it's not as simple as overlapping an object and changing to that colour then you'll have to draw something or provide a C3 file to look at because all I have to go off is that explanation in the original post and it's not 100% clear what you are trying to do.

    First and foremost, thank you for answering me. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

    I apologize if I'm unclear; I'm new to this. I don't fully grasp the concept of overlapping. What is it exactly?

    Second, I believe that it will be easier to explain with pictures and videos.

    Here's a demo of the unfinished game: youtu.be/IYtUQbj4rIA

    Here's the screen captures of my event sheet and main layout:

    imgur.com/a/aB9M1

    Have a good day (or night)! <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" />

  • Just create different animations for the protagonist and set the animation to match what's going on with the object pick up, you don't need to destroy the object.

    How do I change the animations for secondary colors? I did the following and this doesn't seem to work:

    Player|On collision with Cyan powerup|Set animation to "Green" (play from beginning)

    Player|Is animation "Yellow" playing