Frap1K's Recent Forum Activity

  • Hello everybody I'm having problems with the main character, basically I want to make that:

    When - Left mouse clicked (gun) >> set animation to (player_gun)

    But then:

    When Key (S) is down (Player Crouch) >> set animation to (player_crouch)

    But how do i make so when player has already picked up the gun before, then when he presses (S) then play animation (Player_crouch_gun).

    And another problem is when I get stopped by the wall because the player is too big to go through and still holding button go left.... as soon as I press S to crouch it's teleporting him as he was walking with out stopping? So it moves him to the position like the player never stopped.

    Thanks for attention!

  • Hey Jayjay Ty for replying! Yes I did the bullet collide it with zombie but it wont work as the zombies are standing at exact same pixel. So it's gonna kill them both or if there is 10 of them.

    I'm having trouble with creating the thing you told me . I'm probably doing something wrong again ...

    What Happens:

    Maybe it's because the pink box is too low? how do I align it to the center ?

    Thank you again!

  • Hey Jayjay Thank you! Everything works now! I set it all invisible so the zombie is only visible for the player but when the zombies are standing in the same line and position, what happens is when I shoot the zombie they die together so it doesn't really matter if there are 100 of them(zombies) you will still kill them with 2 bullets in the head as it takes away 50 health from 100... .

    So I have come up with Idea creating:

    Solid sprite that will separate them both from colliding together - Which is a pink block

    But...The zombies spazzing out (going crazy all over the place) when I add it.

    Which is the best way of doing it?

    • Putting the zombieCollider into the >> Zombie Container? that's what I tried doing ant I failed somewhere (thats where the zombie was spazzing out all over the map)
    • On start of layout Pin it to each zombie?
    • or any other ways to do it?

    Thank you for you help I appreciate it!

  • Fireche ah okey sorry i did it wrong it works now! Now ill have to just add solid to it!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for replying! Fireche & crypticblonde

    I did what you told me Fireche but it's not working is something wrong in the image bellow?

    Thanks for your attention!

  • Hello guys I have a question that really bothers me... How do you create a door that opens when you click it and closes when you click it again? In 2D game?

    I have created 2 Animations when the door is closed and when the door is open but i need the door to be solid when it's closed!

    Thank you for any help and attention!

  • Thank you Jayjay I understood it! It helped me a lot!

    Okey so I did what you told me:

    When Health is less then < 1 then animation play...

    1.) When the bullet colliding with 2 of them the healthbar doesn't seem to know what to do? IMAGE - 1

    2.)But the death animation keep repeating over again. The repeat animation is set to 1 so once why does it do that then? do you have any idea? IMAGE - 2

    I don't know how to thank you, you helped me so much on this...

  • Jayjay Thank you so much for explaining to me this mess! Will try to make it now, but I guess ill get stuck on the 41 as Im unsure what this means :

    (zombieBodyBox.Health / zombieBodyBox.MaxHealth) * zombie_Health.MaxWidth

    It devides the full health from health ? and times it by it's width ? If you have time could you explain this to me ?

    Thank you for your attention!

  • Fireche & Jayjay Thanks a a lot for helping I don't know what I would do with out you!

    I made 2 sprites on the zombie - 1 is Head, 2 is body.

    • When the bullet collides with the Body subtract 20 from health.
    • When the bullet collides with the Head kill instantly.

    But the clone ( copied zombie ) still dies if i kill one of them .... Please help

    here is the image of the event sheet... Direct Link - upload.ee/image/4715414/testing.png

    Thank you for any future help! It really helps me!

  • Jayjay Trying this now thank you for replying!

  • Fireche But that works with every tick >> spawn object? Is it the same as if I just place them on the map/overlay? like it's shown above on the image?

  • Fireche

    Is this correct?

    And how/where do I put value of the enemies UID?

Frap1K's avatar

Frap1K

Member since 20 Mar, 2015

None one is following Frap1K yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies