Has anyone built a turn based game?

0 favourites
From the Asset Store
A well commented RPG game template to learn from or use as a base for your own game!
  • Hi, new to this, in fact i only just heard about construct 2 days ago. I was looking into building a turn based game, kind of like the yu-gi-oh type of thing but each person would also control the creatures. As an example one player may have 8 attaking monsters, maybe 12 at any given time and each would have different strengths, different types of attack and be better against some creatures than other.

    Is this possible to do with construct and if so is there a tutorial for turn based stuff around or even someone who has done one that can offer advice?

    Meant to say also i want this to be variable players, sometimes 2, other times up to 4. Rach player has a few things to do such as play the card in one phase, an attack phase, maybe a spell phase as well etc before the next persons turn. I can't even work out how to make the movements limited, if you use 8 way then you can keep on moving so its not even turn based. I also need to vary the distance each can travel if possible.

    Any help much appreciated thanks

  • Sure it's possible! =) I'd start out small, working on each individual component of the game to begin though.

    For example you can make these:

    -turn system, such as two characters and only one of them moves at a time depending on what a global variable "Turn" is equal to

    -card shuffling system, not graphical (you only need to shuffle the array values), but if you're looking to make it card-based still then you'll definitely need this to shake up the gameplay!

    If you want to do it graphically, then make one card object and give it animation frames for each card you'll have in the game (set animation speed to 0). You can then set up a deck by storing the animation number for each card in the deck using an Array object

    -graphical card selector, just a way to show which card is selected, and load its stats into memory (eg: store them as private variables for each card, then compare the details of the currently selected card)

    And etc.. Think of everything you'd like to do and add them in one at a time, or copy and paste the events from separate testing cap files (the second method is good if you are working on a part of the game and get stuck, since you don't need to share the whole game file on the forums for help).

    Hope that helps <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Thanks Jay Jay, very comprehensive reply and i have to say i haven't a clue what you just said lol. I think the first thing i should try to understand is how to make it turn based. Ive downloaded the images on the tutorial so if i set up the sprite and the monster on either side what do i need to do with behaviour to make it possible to move in the 8 directions but just 1 movement as in move 1 step then click left button to stop making it go to the monsters turn?

    Thanks again for the reply, i'm just starting to learn Java and this construct could save me the trouble but only if i can learn this easier than Java.

  • Actually, before even starting to build a game, do the beginner tutorial and other linked tutorials in that article as well.

    Turn based is possible, but requires to be already comfortable with C2 and have already made some basic games first. It's not easy to explain to a complete beginner (hence you admitted yourself not having understood jayjay's answer).

    Follow the tutorials, build a bit of experience and then you might come back to this topic and understand better what jayjay proposed.

  • Hi, i've done the basic tutorial, everything worked fine on that. I also had a look at the other tutorials but since neither used turn based i decided not to do them. I'm trying to learn Java as well so if needed i can do the game in that so all told i'm spending way too much time on the computer.

    I just thought it would be easier to check if it's possible on here and if there was a tutorial for turn based. If it can't be done then i can concentrate all my time on learning Java. This Construct looks like it could make things easier for me if it can do what i need so i thought i'd do the common sense thing and just ask someone who might have already done a turn based game already.

  • Anything that can be done in programming can pretty much be done in Construct 2, and in nearly the same way most times <img src="smileys/smiley1.gif" border="0" align="middle" /> If you learn the coding then you'll definitely have an easier time porting it to C2 though.

    I'd happily make an example when I have time, but unfortunately that won't be for another couple of weeks <img src="smileys/smiley6.gif" border="0" align="middle" />

  • Thanks JayJay, much appreciated if you could, should take me a little longer than a few weeks to learn Java lol.

  • No problem I had a chance to throw a quick example together for you here: https://dl.dropbox.com/u/4714446/TurnSystem.capx

  • Thanks Jay, taking a look at it now, looks good for what i need. The help is much appreciated

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • No problem bas1492, glad to help <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Thanks for posting the link. While I know any language/tool can do turn based, it's nice to have a practical example to look at.

    --

    TAZ

  • Glad to help zircher <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Thanks Jayjay that helped me too...

  • thank' bro it really helped me. <img src="smileys/smiley32.gif" border="0" align="middle" /> <img src="smileys/smiley32.gif" border="0" align="middle" />

  • No problem, glad to help

    Hi Jay, do you still have that sample? Because I was just about to post asking about this same thing till I seen this conversation haha, thanks

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)