Fight game - Strategic

Get help using Construct 2

Post » Mon Mar 25, 2013 5:37 pm


Have been reading tutorials and manuals for quite some days now and finally I came to this forum so I can ask you guys few questions. Hope you dont mind. :)

I have made several searchs but I could not find what I really wanted so I am sorry to come and ask, but I have no other way.

I am very new to C2 and was reading and watching video tutorials and got the basic idea of this program.

What I want to do is create a fight game. A very fast example would be a game like

So I what I would neeed is:

1- A player character with basic status like damage, hit points and chance to dodge.

2- This player will levelup and each level will give him some skills and/or equipments.

3- Save all this info in a database (MySQL for example) and make the game read this so it can create the fights between players.

4- To fight a player just click another player name, and the program check all this players stats/skill and start a fight. So all random stuff based in formulas like playerA hit playerB, xx damage is done, and so. No player interaction with these fights.

I guess basically this is it.

So is Construct 2 able to do this? If so, does anyone can please lead me to tutorials or examples any advice?

I would really appreciate any help!!!

Thank you and sorry to ask that much!

Posts: 24
Reputation: 985

Post » Mon Mar 25, 2013 8:17 pm

You can definitely do all of that with Construct 2.

Parts 1 & 2 are the most simple, as all you have to do is create some local variables for each statistic or value that you want to track (I typically do this by creating an object in the layout view and then adding one from the list on the left), and then after each fight, you add the experience that they got, see if they leveled up, and if they did, then give them X equipment.

You're going to need to use something like AJAX to connect to your server though and store the data (here is a tutorial on that Once you retrieve the data though, you just have an automated system run through the fight (typically a loop until one player is dead, with whichever attack patterns and calculations you want in between).

Hopefully that helps!
Posts: 89
Reputation: 6,017

Post » Mon Mar 25, 2013 10:53 pm

Thank you very much Rabid! I got now a better picture of the whole cenario. I hope someone else can give me more advices.

Thank you alot!!!!!!!!!!
Posts: 24
Reputation: 985

Return to How do I....?

Who is online

Users browsing this forum: Congrats2u, jhjconstruct, tarek2, TheGreatAdam12 and 10 guests