throwing bomb?

0 favourites
  • 8 posts
From the Asset Store
Throw daggers and hit the most fruit! Watch out for the wind, if you run out of daggers you'll lose the game!
  • hello

    i was making a platform game and want the enemy soldier to through bomb..

    1) how can i make him through a bomb at a angle

    (like, i have added animation of throwing bomb on soldier

    with that the bomb leaves his hand with a angle to my player!!

    what event should i add and how?

    thanks help will be appreciated

  • what happened guys no body knows the answer

  • You can spawn another object (bomb) and create the movement of throwing.

    Then you add a wait of x seconds before it explodes to look real.

    When it explodes, it would destroy everything in a radius (distance).

  • So the bomb is thrown now?

    Set a variable on the bombs called timer.

    Every second, pick every bomb and reduce bomb.timer by 1.

    Make another event if bomb.timer = 0, explode.

    I would make it shoot out flaks in all directions, make small sprites that shoot out of the bomb and deal damage and die at the same time. This way damage detection allows for soldiers to block bombs for other soldiers.

  • also it would be really cool if you add some physics on the bomb so it will bounce on the ground like 2-3 times then bomb.. also after it explode you can spawn another object ( the explode object) this will destroy anything collision with it .. you don't need radius and these kind of stuffs ^^

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • thanks for great replys guys..

    but how can i through that bomb in d shape like in a round shape to ground

    you know what i mean how we through grenades!!!

    below is a snapshot

    lh4.googleusercontent.com/-FZF3TT0PJtg/UC0iOH2Kw6I/AAAAAAAAAGI/zY8YOEDH5es/s576/snap.gif

    his throwing animation is not working is anything wrong!!

    and also he dosent throw bomb properly not from animation but from his stomach..i know i can put image point for that.

  • You are setting its angle, but you aren't throwing it.

    You can give it the platform behavior and add speed (Vector X and Y) to it!

  • first of all try to read my tutorail about platform animations.

    http://www.scirra.com/tutorials/351/platform-behaviors-animation

    2nd thing if you wanna the bomb to go to the ground try to use physics it will give them nice effect as i said... also you can use platform as Rory said.

    last thing the spawn from stomach this because you have to change the point to fix that do these stuffs :

    1- go to your player and click edit animation > create new point and put them on in the place where it should spawn

    2- in eventsheet > in the event of spawn > put the number of the piont that you created .

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