Need help: having a enemy shoot toward you

Get help using Construct 2

Post » Tue Oct 29, 2013 3:18 pm

Hi, I need help figuring out a level. I want to have an animated ninja in the center of the screen throw stars toward you the player (the screen)

When the stars hit a certain point they cause damage. I want to add this to my game ninja slice. Which already has a fruit ninja type level.

The ninja slice is here:
https://www.dropbox.com/s/kobuoqqc9lldbgc/Ninja_slice_shurikan.capx

When you reach level 2 you can see the ninja throwing sprite and the ninja star sprite. But that's as far as I got.

Any tutorials for something like this?
B
10
S
3
Posts: 113
Reputation: 1,191

Post » Tue Oct 29, 2013 3:30 pm

I forgot to mention I need the star to grow as it moves toward the screen.
B
10
S
3
Posts: 113
Reputation: 1,191

Post » Tue Oct 29, 2013 3:41 pm

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 29, 2013 4:20 pm

I tried downloading your link but it says you saved it in version 148 and I am using 146. The current downloadable version is 146. Is there a way around this?
B
10
S
3
Posts: 113
Reputation: 1,191

Post » Tue Oct 29, 2013 4:52 pm

on the main scirra.com page navigate to the bottom of the screen.there you will see the 2 releases. the stable one (146) and the beta one (148).
B
15
S
6
G
4
Posts: 277
Reputation: 3,948

Post » Tue Oct 29, 2013 5:13 pm

Stain that's perfect. THANKS!
Roccino thanks I downloaded it.

Stain how could I set the stars to cause damage? Would having them cause damage if they leave the screen be the way to go?
B
10
S
3
Posts: 113
Reputation: 1,191

Post » Tue Oct 29, 2013 6:31 pm

Stain I managed to get the stars to bounce off when sliced by the mouse but I can't seem to get them to bounce off at the same size (they appear small) and back toward the ninja.

I used a destroy sprite (star) when sliced and spawned a new star from that point but they fly off anywhere and not from large to small. The idea is to deflect them back at the ninja and he takes damage.

Any ideas what I'm doing wrong?
B
10
S
3
Posts: 113
Reputation: 1,191

Post » Tue Oct 29, 2013 7:20 pm

you don't have to destroy and create I think. Just set bulletangle towards star.oldx star.oldy
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 » Wed Oct 30, 2013 12:28 pm

I tried that but it's giving me an incorrect syntax.
I then tried sending it to the sprite (throwing ninja) but they still bounce randomly.
B
10
S
3
Posts: 113
Reputation: 1,191

Post » Wed Oct 30, 2013 12:38 pm

It should work this way. No destroying or creating anything.

slice is overlapping sprite10 - sprite10 set bullet angle of motion : angle(sprite10.x,sprite10.y,sprite10.spawnx,sprite10.spawny)

I tried it with on touched and it worked.LittleStain2013-10-30 12:40:05
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

Next

Return to How do I....?

Who is online

Users browsing this forum: t redeemed t and 23 guests