Need help: having a enemy shoot toward you

Get help using Construct 2

Post » Thu Oct 31, 2013 2:03 pm

Actually, a simple move to command doesn't exist, haha..

If you want to keep it really simple, you should use the most used 3rd party plugin conveniently called MoveTo.
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 » Thu Oct 31, 2013 2:05 pm

Where would I get that plug in?
B
10
S
3
Posts: 113
Reputation: 1,191

Post » Thu Oct 31, 2013 4:00 pm

You could go to the plugin section of this forum, use the forum search or just ask me:

MoveTo
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 » Thu Oct 31, 2013 7:34 pm

Got it. Thanks so much. Here is the version 1.0

I credited you in the credits.

Now I have to tweak it but I'm pretty pleased with the results so far.

https://www.dropbox.com/s/gcd4oesfgyqnep8/ninjaslicefinal.capx.backup1
B
10
S
3
Posts: 113
Reputation: 1,191

Post » Fri Nov 01, 2013 3:19 pm

Another question. I am trying to have the screen flash red when the ninja star leaves the screen showing damage. I made a background that was red and tried to turn it visible and invisible but that did not seem to work. Any ideas?
B
10
S
3
Posts: 113
Reputation: 1,191

Post » Fri Nov 01, 2013 3:23 pm

This is what I have so far the level I am talking about is level 2.
Need to flash the background red when the star leaves the screen to show damage.
Improvements from the last version:
Death scene
Health power ups
https://www.dropbox.com/s/fqyp6vj46cfblpw/dojored.capx
B
10
S
3
Posts: 113
Reputation: 1,191

Post » Fri Nov 01, 2013 4:12 pm

Figured it out. I set up three layers. Zero a red tinted version of the background, one the actual background with a flash behavior, and two the layer with the sprites. This way when I call the flash behavior it flashes (actually becomes clear) and the red tinted version shows through. Works great.
B
10
S
3
Posts: 113
Reputation: 1,191

Post » Fri Nov 01, 2013 4:13 pm

You are using the spritebank plugin in your project, so I cant open it.

What you could do is add a red tiled background the size of the screen give it the fade behaviour for 0.25 fade out time and destroy after fade out. Now every time damage is taken create the sprite.

This works even nicer if you set blend mode to additive I think, although it's nicer if you make the fadeout-time longer then.
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 » Mon Nov 11, 2013 4:15 am

Little Stain, could you help me figure out how to reverse this and have the player throw the stars at the ninja?

I have the throwing sprite which is at the bottom of the screen and I have a ninja randomly appearing then disappearing in a puff of smoke. I want to have the player mouse click on the ninja before he disappears and click which would then have a star thrown. My problem is figuring out how to have the star change in size as it goes toward the target. You helped me with this when the ninja threw stars toward the player now I have to reverse it. I've been yanking my hair out looking at the code trying to figure out how to reverse it.
B
10
S
3
Posts: 113
Reputation: 1,191

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests