How do I encapsulate an enemy when attacked

Get help using Construct 2

Post » Wed Mar 28, 2012 2:19 am

Hello, I am a SUPER NEWB at Construct and I am working on my first game. I have used a couple of tutorials but I just wanted to know how I would go about encapsulating an enemy into a bubble and maybe shading the enemy a light blue-ish hue when they're trapped in the bubble. I am making an underwater game and need the enemy to be incapacitated and trapped in a bubble that floats slowly toward the top of the screen after the enemy has been attacked. What are the steps toward doing this and is there any code needed to do something like that? Thanks so much. -Kale
B
10
G
2
Posts: 9
Reputation: 1,137

Post » Wed Mar 28, 2012 2:30 am

About the shading part, for now you might need appropriate sprites displaying the enemy in the appropriate color, there's no real way to change the hue of sprites (js limitation for now).

For the encapsulate part, I guess you need to set the bubble position to the enemie's position (or the inverse) when they collide each other, and "pause" the behaviors that make the enemy and bubble move.

It depends on how you setted up things so far.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Wed May 16, 2012 3:07 am

Excellent pic, Kalewind1.... why thank you!
B
10
G
2
Posts: 9
Reputation: 1,137

Post » Wed May 16, 2012 6:43 am

If the sprite of the bubble is a transparent PNG image colored blue this is mixed with the color of the enemy and give him the tone you want.

Sorry for my English is very bad.

See my capx example.http://dl.dropbox.com/u/12633239/encapsulate-an-enemy.capx
B
17
S
3
G
1
Posts: 28
Reputation: 1,763


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests