Rnamon's Recent Forum Activity

  • Hello friends!

    I need your help on the subject.

    I know what I exactly want, but I do not know how to "tell" the constract how to do it.

    I want to create a sort of "stack" for the powerups I collect.

    Each time the player collects a power-up (from a selection of 4) a power-up icon appears at the bottom of the screen, and when he collects a new power-up (while there is already another active) instead of the power-up replacing the existing one or running alongside the active one, his icon joins the stack at the end .

    After the power-up that is already active has finished working - I want all the icons to move one position towards the active power-up. Then the next power-up in the stack will start working. (I.e. the icon that was in position 4 moves to position 3, the icon that was in position 3 moves to position 2, and the icon that was in position 2 moves to position 1 and starts working) One step forward - except for the one that is already active (i.e. the new icon that is in position 4, the icon that was in position 4 moves to position 3, the icon that was in position 3 moves to position 2, and the icon that was in position 2 disappears ....)

    It is important for me to note that I have 4 different power-ups, and a situation can arise where you have several double power-ups, that is, you can have a power-up of a shield and then one of shots, then another one of a shield, then a power-up of power.

    Like I said I know what I want but how do I "tell" the software how to do it ...

    My problem is divided into several stages:

    1- Every time the player collects a power-up, I need to check if position 1 is free. If so, put the power-up icon there and turn it on. If position 1 is not available, check that position 2 is free - then put the icon in position 2, if position 2 is not available, check that position 3 is free - then put the icon in position 3. If position 3 is not available, check that position 4 is free - then put it In position 4.

    I guess it's possible to do it using "else" but how do I tell him "if you already put the icon in one of the locations - stop! Do not put in the other locations because you have already put in one location"

    2- When the active power up is over, I want to make the other icons "move" one position forward. Which will activate the power up that is first on the list. How do I tell them to move in the same order they were (you were in 4th place, move to 3rd place, etc.) only one position forward? I can not crack it ... that is, "the object that was in position X Y will move to a new position X Y (no matter what object it is)"

    3- I guess the answers to the previous two questions will give me the knowledge to do what I want - that if all the places are active, and you collect a new power-up - then move only the power-up that is not active forward.

    I know it was a long question but I tried to be the most accurate in my question so you can help me, I really really thank you! Thank you very much

    Tagged:

  • Worked like magic! Thank you

  • Hello Hello!

    In the game I build my character can shoot at enemies and after 2 hits eliminate them.

    I created a global variable for the enemy of ENAMYHP = 2 and as it hurts it it drops by 1, and when it reaches zero the enemy is destroyed (pretty standard)

    The problem starts when I take the enemy and duplicate him. I can keep shooting them but nothing happens - I guess because it's a global variable - all enemies of the same type lose 1 life ....

    How do I make it so that when I hit an enemy it lowers him and only his HP and not the other identical enemies?

    Thank you very much

    Tagged:

  • Thank you very much! Thanks to your help I was able to solve all the problems I had with the game I am building! I really appreciate it!

  • Thank you very much! Thanks to your help I was able to solve all the problems I had with the game I am building! I really appreciate it!

  • Hello Hello!

    Is there a way to make an action run for a few seconds?

    To be more precise - can I make "simulate platform pressing right"

    Work on is own for a few seconds?

    (what will make my character move for a few seconds on its own in the chosen direction)

    Thank you very much!

  • it worked!!! Thank you very much!!! I appreciate it so much

    It only made one single problem for me - I would really be happy if you could help me with that as well

    This new situation meant that my character could no longer shoot while he is moving.

    When he stands he shoots graet. But when he moves he does not do it.

    This is the event I use for this - when the shot's animation ends And if its speed is equal to or higher than 1 (to make it while is moving) it fires.

    For some reason this does not happen. Does it collide with the "Key is down"?

  • If I do that, it makes my character get stuck in place, and she can just jump up and down.

    Correction: I noticed it does move - but so little I think only one pixel

  • Hey friends!

    I have a problem that I just can not overcome no matter how hard I try - I would greatly appreciate your help in this matter!

    My character as soon as she hits the enemy snatches a blow down her life she has a cute animation of a hit and then (if she has life left) returns to activity. - I really want to make sure that once he takes a hit - the player can not move the character at all until all the animation of the character runs out. For this I created the following events:

    Basically when he is injured he cancels the Group where I put all the player's moves (MOVE) And also the Group of firing.(SHOT):

    The problem starts here - for some reason he loses the ability to shoot until the animation runs out - but he is still able to move - he does not do the animations (of running for example), but he "slides" in the last frame of the animated hit - causing me bugs and even a situation where Even if he has zero life he can still continue to play.

    I have been trying for a long time to fix this and it causes me a lot of frustration. I would really appreciate if you could help me with that. Thank you very much

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

Rnamon's avatar

Rnamon

Member since 5 Jan, 2021

Twitter
Rnamon has 2 followers

Connect with Rnamon

Trophy Case

  • 4-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

7/44
How to earn trophies