Creating Worms or Scorched Earth Game??

For questions about using Classic.

Post » Sat Aug 07, 2010 1:14 am

I was wondering if there are any tutorials or examples of how to create a Worms or Scorched Earth type game in Construct. For example creating a power bar (shows how much power when you hold down a key and then when released shoots the projectile) and how to use angles for aiming. How would Construct calculate how much power was used and what angle the shot or projectile was fired?

I apologize if this is the wrong forum.

Thanks
Ikonz101
B
2
G
2
Posts: 9
Reputation: 668

Post » Sat Aug 07, 2010 5:32 am

Hi. I don't know of any tutorials on such a game. I made a simple example of how one might do such things, though (v0.99.92): [url:3crltd5w]http://dl.dropbox.com/u/5868916/Artillery.cap[/url:3crltd5w]

A power bar can be pretty easy to do. Could use a progressbar object, I suppose, but I'd prefer a sprite in most cases. I just used it's width as the measure of power. I surrounded it with a box object for a visual on what the max would be... EDIT: Just remembered that I used a tiled background object for the bar, because it generally scales better than a sprite, in my opinion.

Though this is the first time I've tried the Physics behavior, it seems to lend itself well to such a game, so I used that. The attributes of that behavior can be tweaked as needed. Just one action containing a few simple calculations sets the projectile in motion at the proper angle and speed.

It uses the RMB to set angle and the LMB to set power.
B
3
S
2
G
2
Posts: 187
Reputation: 1,449

Post » Sat Aug 07, 2010 7:42 am

Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sat Aug 07, 2010 3:37 pm

This is a great example Silent Cacophony :D Only thing I need now is to learn how to put a cross hair in front of the turret (not a free roaming cross hair with mouse but a cross hair set in place that can be moved up and down with arrow keys). Thank you for the link lucid for the destructible terrain. This is awesome guys....thank you.

Ikonz101
B
2
G
2
Posts: 9
Reputation: 668

Post » Sat Aug 07, 2010 6:13 pm

I would not recommend using Physic behaviour for projectiles, they caused weird crashes on collision with canvas object. Maybe it was because of unstable release.
B
5
S
1
G
2
Posts: 70
Reputation: 1,140

Post » Sat Aug 07, 2010 10:29 pm

[quote="TheBricktop":2q3mm763]I would not recommend using Physic behaviour for projectiles, they caused weird crashes on collision with canvas object. Maybe it was because of unstable release.[/quote:2q3mm763]

Are you talking about the demo that Silent Cacophony made or just Construct in general. I didn't see any crashes on the demo. I am also using Windows XP.

Ikonz101
B
2
G
2
Posts: 9
Reputation: 668

Post » Sun Aug 08, 2010 5:44 am

How do I set a trial effect for the ball after it is launched? Is there a effect for this?

Thanks
Ikonz101
B
2
G
2
Posts: 9
Reputation: 668

Post » Mon Aug 09, 2010 11:29 am

I made my own game and tried that behaviour, but ive encountered crashes. if you don't have any it was probably my fault, but still I use custom movement for basic balistics. As for trail effect you could use particles that would appear behind projectile and maybe combined with container.( read wiki )
B
5
S
1
G
2
Posts: 70
Reputation: 1,140

Post » Mon Aug 09, 2010 4:08 pm

[quote:34z711fa]As for trail effect you could use particles that would appear behind projectile and maybe combined with container.( read wiki )[/quote:34z711fa]

When I try to add the particles container to the projectile it crashes Construct so I think it might be a bug. If you can get it to work let me know. Thanks for the tips TheBricktop.

Ikonz101

Edit: Got it working had to destroy on startup. It doesn't follow the ball it just spawns in a certain location. What would I use to make it follow behind the ball?

Tried the missile trail example but couldn't get it working...getting frustrating.. :(
B
2
G
2
Posts: 9
Reputation: 668


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests