Fruit Ninja help.

Get help using Construct 2

Post » Tue Oct 22, 2013 1:02 pm

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:
https://www.dropbox.com/s/hkbtnw7o55oc968/ninjaslice.capx

Thanks
B
10
S
3
Posts: 113
Reputation: 1,191

Post » Tue Oct 22, 2013 4:18 pm

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:
https://www.dropbox.com/s/o71etjyigy9jshc/ninjaslice2.capx
B
10
S
3
Posts: 113
Reputation: 1,191

Post » Tue Oct 22, 2013 7:13 pm

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:


https://www.dropbox.com/s/xvxrar4fn3b18gc/ninjaslice3.capx
B
10
S
3
Posts: 113
Reputation: 1,191

Post » Tue Oct 22, 2013 7:29 pm

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

I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Oct 22, 2013 7:32 pm

@LittleStain

THANKS!

Any idea why I keep adding lives when a bomb is hit? That one is driving me crazy.
B
10
S
3
Posts: 113
Reputation: 1,191

Post » Tue Oct 22, 2013 8:15 pm

@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.
B
10
S
3
Posts: 113
Reputation: 1,191

Post » Tue Oct 22, 2013 9:33 pm

You're subtracting -1 from lives when you hit a bomb. You want to subtract 1 or add -1 :)
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,650

Post » Wed Oct 23, 2013 4:51 am

@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.
B
10
S
3
Posts: 113
Reputation: 1,191

Post » Wed Oct 23, 2013 12:16 pm

Here is the latest link:
https://www.dropbox.com/s/hp1eymcm5omnhas/ninjaslice4.capx?m
B
10
S
3
Posts: 113
Reputation: 1,191

Post » Wed Oct 23, 2013 12:32 pm

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

If so, to stop it going crazy, maybe add a Trigger Once condition.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,413
Reputation: 59,510

Next

Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, kellehk, KSLR, R0J0hound, tarek2 and 35 guests