Advice on choplifter type game

Get help using Construct 2

Post » Tue Nov 13, 2012 9:21 pm

I am trying to make a choplifter type game where the goal is to pick up pow's and deliver them at the base.Any advice on how to pick up the soldiers and offload them would be appreciated.

When the chopper lands for instance ,the pow's should run towards the chopper and get in one by one.And if the chopper lands at the dropzone the pow's should get out one by one and run towards the safe zone.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Wed Nov 14, 2012 3:10 am

I won't give you the exact answers but I will point you in the right direction.

You're going to want to learn about the Distance() expression. This is used to determine the distance between 2 objects. If your helicopter is close enough to the POW's then they should run towards the helicopter.

Also, you will probably use the On collision with object event as well. When the pow's overlap with the helicopter, you'd add how many he picked up to a variable maxing out at however many he can hold before having to fly away again.

once he lands on the helipad to drop them off you can start subtracting how many he's holding, then spawn the animations of them running off to safety.

Just try breaking down each little element then searching the forums for examples or trying some things out in the engine to see how to get them to work.

Try bringing up the available events for a sprite for example and look through each of the possible actions. Ask yourself how you can use each one for different types of scenarios and you'll start to see how powerful the engine is, and the possibilities that are endless.
B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Wed Nov 14, 2012 9:33 pm

thanks for the advice.I used the distance expression together with the on ground event.Works like a charm.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141


Return to How do I....?

Who is online

Users browsing this forum: LeFuji and 21 guests