Make boss jump around platforms

Get help using Construct 2

Post » Thu Dec 01, 2011 8:24 pm

I've searched through the forums and the tutorials and can't find any insight as to accomplishing this.

I just want to have an enemy that can jump around on three different platforms until he's killed. Can anyone point me in the right direction for making this happen?
B
8
S
6
G
4
Posts: 3
Reputation: 2,821

Post » Thu Dec 01, 2011 8:36 pm

Arrgh, there was a perfect example for this, but I forgot who made it and where it is.
Basically it involves using an enemy with the platformer behavior (default controls off, of course) and having invisble objects positions at locations where you want the enemy to jump.
So you can just test, is overlapping the detector, then simulate platform jumping.
As for moving side to side, you just need a variable (string would be convenient). If variable = left then simulate platformer going left, if variable = right then simulate platformer going right.
Then you need to make another invisible object at the end of the path, and on collision with the object
--subevent
if the variable you made earlier = left then set it to right
and vice versa.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Thu Dec 01, 2011 8:49 pm

Ennemy control with platformer behavior - LINK from the how do I FAQ ?
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,999
Reputation: 57,793

Post » Sat Dec 03, 2011 3:48 am

Thanks sqiddster! I appreciate the help. I'm going to give this a shot right now.
B
8
S
6
G
4
Posts: 3
Reputation: 2,821

Post » Sat Dec 03, 2011 3:50 am

That's exactly what I was looking for Kyatric. Thank you! I looked through the How do I FAQs several times but I apparently looked right over this. Going to try and implement this asap.
B
8
S
6
G
4
Posts: 3
Reputation: 2,821


Return to How do I....?

Who is online

Users browsing this forum: Aserak2012, ManuelPerez and 20 guests