Group Movement?

For questions about using Classic.

Post » Mon Jul 02, 2012 3:39 am

Would Anyone know how to do/make a group movement

EX: enemy has a surrounding shield of objects (rocks, ice, missiles, bombs, etc.) and it follows the enemy(s); you can get to the enemy(s) by destroying pieces of it(each object)?
B
3
S
1
Posts: 59
Reputation: 568

Post » Mon Jul 02, 2012 5:47 am

You could use the Orbiter plug-in for a simple option if you just want objects rotating around another. However, it isn't very dynamic looking.
B
8
S
2
G
2
Posts: 144
Reputation: 1,588

Post » Wed Jul 04, 2012 4:26 am

I can't find the orbit plugin. Do I have to DL it or am I just blind?

Couldn't I just set a PV for the orbit objects and see if the enemy with the the UID matches that PV and set it to follow that enemy?

Well that's my theory anyway. I have tried it with little success though.

For each OrbitShield
->Pick by comparison Baddy: Unique ID = OrbitShield.value(EnemyID)
action: OrbitShield: set position:
Baddy.X + cos(TickCount * 1.2 -OrbitShield.Value('TempRadialOffset')) * 70
Baddy.Y + sin(TickCount * 1.2 -OrbitShield.Value('TempRadialOffset')) * 70

BTW, thanks to the people on the forms for the circle/orbit code

So anyone have any ideas? anyone?
B
3
S
1
Posts: 59
Reputation: 568

Post » Thu Jul 05, 2012 6:30 am

Here's an orbit behavior: http://www.scirra.com/forum/pluginorbiter-behavior_topic37675.html

Hope that helps.
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Sat Jul 07, 2012 11:18 pm

Thanks both of you. I'll check it out.
B
3
S
1
Posts: 59
Reputation: 568


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests