Hi I am currently looking into the Unity engine but am skeptical having purchased other game engines in the past to only be disappointed. Not so with the engines but more so with the documentation and tutorials available. The previous engines I have tinkered with ether had poor documentation or had the majority of its documentation focused on creating FPS games, which I’m not interested in making.
(sorry for the speech)
So to the point are there any tutorials on scripting a 3D turn based game for this engine?
You can download Unity and see for yourself, but the documentation doesn’t have any particular focus other than documenting the API. I’m not aware of any tutorials for turn-based games in particular, but once you complete a few other tutorials and get a sense for how Unity works, you shouldn’t have any problems implementing whatever kind of game you can think of.
–Eric
The reason I’m mentioning it is because Ive used other 3d engines before and have an ok understanding of how real time games like FPSs work but the one type that I am hell bent on creating just for the sake of it is a Turn Based strategy game but for some reason I cant wrap my head around the concept of how to code it. And I was just hoping that there was at least a simple chess or checkers tutorial to get me started cause thats really all I would need. And with that im looking for more of and TBS tut. that also includes and AI player.
As for trying the demo I was planing on that after I found some tutorials/refences that are more of what I plane to be working on with this engine there for getting a better assessment of whether this engine is for me.
Thank u for the reply
This is a 2d sprite(but made with Unity) turn-based strategy game. Fundamentally, this has nothing to do with Unity. What you’re ideally looking for is a tutorial which should be found on the web.
With the basics of Unity, knowing how to set up scenes, attach scripts to objects and sync them, etc, you’ll be able to do exactly what you want to do. Unfortunately, the 2d and 3d examples are both platformers, and not turn-based.
Combining documentation outside of Unity’s web presence with their documentation should yield you exactly what you’d like, but it will take time on your part. The possibility is there, though.
Now that I think of it, there is the iPhone-Match example project here. It’s a tile-matching game, but it contains the basic concept of how a turn-based game would work. It is, as you would expect, for Unity iPhone, but would be trivial to convert to regular Unity since it makes no particular use of funky iPhone concepts (could be played with a mouse just fine). Also it’s not a tutorial as such, but rather a simple example, so you might want to take a look at it after you get a little Unity experience.
–Eric
There it is! I was looking for it, couldn’t find it. Bah that website.
Will the iphone-match example work with regular indie unity?
It’s kinda ironic that turn-based stuff is so easily implemented in 2D, since the engine can usually be paused to wait for user input. But for 3D engines they still are dependent on real-time event scripting so as a result most use is in FPS and platformers.
from this thread:
http://forum.unity3d.com/viewtopic.php?t=36739&start=0&postdays=0&postorder=asc&highlight=
I’m used to creating highly linear-based gameplay that starts in a main loop, which calls subroutines (e.g. a puzzle that must be solved), before returning to the branching point in the main loop.
I’m midway through the platforming tutorial, but I am getting bored at the emphasis on the special effects. A simple tutorial with chess or tic tac toe would have been nice. The process would be something like 1.) You use controls to manipulate the tokens / chips / chess pieces in 3D. Once you’re done you hit ‘done’ and the variables are saved to a certain state. 2.) The computer analyzes these variables then makes a response shown by pieces animated by AI. 3.) Then it’s your turn again.
It would be also relevant to have multiple save states so you can, for example, roll back 1 or 2 turns to start over. But after some reading I realized that creating save states seems harder than it need be, so much so that there’s even middleware targeted at making save states:
http://www.anbsoft.com/middleware/ezs/index.htm
That was not an issue with 2D engines with main loops! Sorry, I am really new to this method so maybe I’m just not yet confident about how to start.
Who else has made turn-based stuff with Unity? Anyone?
You’re trying to jump in at the deep end, and consequently, you’re blaming the engine for being unsuitable for something because you’re out of your depth and don’t know how to do it yet.
Whether a game engine/graphics engine uses a script-based event-driven model like Unity or a procedural main loop style of programming has no bearing on whether or not it’s suited for turn-based games.
Put your eventual goal aside for a while and learn to use Unity. When you understand how to use Unity, then you can come back to a turn-based game and you’ll understand how to go about it.
Gah, ok lets simplify this quiet a bit, two types of turned based systems can be generated with very few lines of code, first is the frame based system, in other words, you set time to zero and use logic to advance the frames for each turn, second is just as simple, you let it run normal time, but set logic on parts to only act on certain conditions. That’s it.
A turn based system is astronomically easier than a active system. Either everything is calculated on every frame and you trigger each frame based on game logic and buttons, or you simply deal with it on a script that handles all objects at one time based on a trigger you make.
Seriously it is easy in Unity.
If I can do it, “anyone” can do it, I am the apple that has the shortest distance to fall when I fall off the apple tree around here.
the code for making “turns” so to speak would actually be quite simple.
second that. you need to learn how to swim first. Try out a few tutorials and see if you like unity for yourself, instead of asking other people.
peace