Fruit Ninja help.

  • Hi I need help with a fruit ninja type game I am playing with based off one of the examples.

    I have the ninja's jumping around getting sliced and that's working fine but when I added a 'swoosh' sound effect that also worked fine but it seems to remember the clicks and play the sounds after the mouse movement.

    Second trying to add bombs in the original template there is none so I tried to add some but there is a custom code (a wrench with arrows) that I can't for the life of me find out how to insert, so when I copy and paste it does not come out right.

    Here is the example in drop box:

    dropbox.com/s/hkbtnw7o55oc968/ninjaslice.capx

    Thanks

  • O.K figuring some of this out as I go along.

    Added bombs with explosions and sound.

    Still have the problem with the swoosh sound stacking up and playing after if you get too crazy clicking.

    Would like to add a death picture.

    I'd appreciate any help.

    Here is the latest in my drop box:

    dropbox.com/s/o71etjyigy9jshc/ninjaslice2.capx

  • Got a little further

    Added bombs with explosions and sound.

    Still have the problem with the swoosh sound stacking up and playing after if you get too crazy clicking.

    Would like to add a death picture.

    Also for some strange reason it adds a life when hitting a bomb verse taking one away then ending in the Game over death screen.

    I'd appreciate any help.

    Here is the latest in my drop box:

    dropbox.com/s/xvxrar4fn3b18gc/ninjaslice3.capx

  • Add this to your events and the sound will stop at mouse button released.

    <img src="https://dl.dropboxusercontent.com/u/48563442/Audio.jpg" border="0" />

  • LittleStain

    THANKS!

    Any idea why I keep adding lives when a bomb is hit? That one is driving me crazy.

  • LittleStain

    THANKS! I am learning a lot. I appreciate the help.

    I made that change and it works great.

    Now I'm jammed up with the lives and death screen.

    Any idea why I keep adding lives when a bomb is hit? That one is driving me crazy.

    I'm trying to have it where you have 3 lives you hit a bomb and it shows a game over screen and plays the sound 'Game over'. I thought it would be easy but I'm going a bit crazy. For some reason it's adding lives and then it doesn't play the sounds.

    I am happy though that with no experience at all at this I can slog through it and make something cool. Payday I'm going to take the plunge and buy the program.

    Thanks for the help.

  • You're subtracting -1 from lives when you hit a bomb. You want to subtract 1 or add -1 :)

  • ramones BINGO! Now it works.

    However I'm having a really weird problem now. When I have the lives reach 0 I have it set to play a sound of someone saying "game over" and show an end screen. But when this happens the sound is totally screwed up. It almost sounds like someone has all the keys of an organ keyboard pressed at the same time. It's ugly.

    Any idea's?

    Thanks for all the help everyone.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Here is the latest link:

    dropbox.com/s/hp1eymcm5omnhas/ninjaslice4.capx

  • Do you want the 'Game Over' sound to be looping?

    If so, to stop it going crazy, maybe add a Trigger Once condition.

  • zenox98

    Thanks

    I thought the "play gameover not looping" was supposed to do that. How do I add the trigger?

  • I just want it to play once when it reaches 0 lives.

  • The file you provided has the 'Game Over' sound set to looping.

    Set it to 'Not Looping', then press right mouse button whilst over the 'Life2=0' condition in Event 10 and select Add Another Condition. Select System/Trigger Once while true.

  • Perfect thanks so much!

  • zenox

    Now I'd like to add a start (instructions) screen

    and a play again button on the end screen.

    I'm not seeing anything in the tutorials or maybe I missed it.

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