Platformer Starter Kit (TGB)
by Phillip O'Shea · 02/25/2008 (9:41 pm) · 45 comments

I am proud to announce Torque Game Builder's (TGB) Platformer Starter Kit (PSK)! The kit does not require source modifications and is available to any TGB user (version 1.5 and up)!
The PSK should hopefully be released within the next few weeks. It will include the full source, framework documentation, a small demo level and a tutorial on how to construct it.
This kit is based on the Torque X Platformer design, including all of its major features and a few more. Everything you see below is customizable. Thanks to TGB's behavior system you are able to modify nearly any setting for any object in the game, it is that simple.
Platforms
One of the most basic features of any platformer is to have platforms! The PSK sports Solid and One-Way, allowing for flat and sloped surfaces. There are also Moving, Bouncing, Falling and Conveyor platforms! The platform system has been set up with expandability in mind, if you can think of a new type, you can add it!
Ladders and Hazards
Most platform games have some kind of ladder or rope which allows characters to climb up and down, the PSK is no different. Included is an area damage hazard that deals periodic damage to your character when inside the trigger (ideal for lava or electricity fields) and will deal damage upon collision if it is a regular scene object (great for spiked floors or crushing doors).
Collectable Items
Objects are collectable by players and have been set up in a similar fashion to platforms. Adding the pickup behavior to your object will allow that object to be collected, but what sort of object it is, is up to you! The foundation for an inventory system has been set up which records the items that you've collected in your journey.
Spawn Points and Check Points
In order to improve performance, any type of object can be spawned through a spawn point. You wouldn't want the computer to process the information of the 50 enemies in your scene each frame, so you control how many there are in the scene at any given time. Check points not only record the player's respawn position, but they also record how many objects each spawned has spawned.
Sound and Animation Manager
Using TGB's sound system can be quite daunting at times. The PSK has included a sound manager which handles all of the sounds and music being played in the kit. Characters in the game are animated through the system created in the PSK. It uses a Finite State Machine to handle all of the details when changing states and supports animation transitions!
Object Manager
Conditional collisions are always a tricky aspect of any game. The PSK uses the graph group system in place in TGB, but has made it easy to manage through a new labeling system. Group types are labeled and can have parents and children types. Objects can then be told to collide with objects from specific groups. Here is a small example:
- An object is an Apple and a Fruit.
- An object is an Orange and a Fruit.
- An object is a Fruit (not an Apply or an Orange).
- An object set to collide with Apples will collide with Apples and Fruit, but not Oranges.
- An object set to collide with Oranges will collide with Oranges and Fruit, but not Apples.
- An object set to collide with Fruit will collide with Apples, Oranges and Fruit.
It is a pretty basic system, but it is a very handy tool to help with managing your scene. It means that you can have triggers or objects which affect all characters in your game, or just specific character types.
Basic AI Controller
Through the use of behaviors, characters in the world can act like players. Behaviors allow you to treat a characters body and its brain as two separate objects. This means that all you need to do is script the brain and the body will interact with the world. Included in the PSK is a basic enemy who walks side to side, but has the ability to behave like a player!
Parallax Scrollers
Parallax scrollers create a sense of depth to your game. When the camera moves, your background images can scroll at different rates. All you have to do is add the behavior, set the scroll rate and the kit will do the rest.
Final Note
This kit should provide a solid foundation for any user wanting to recreate any of the classic platformer games. Give it a go (when it is released) and I will do my very best to provide users with support in the creation of their games.
Much of this work could not have been done without the support from GG. They have been outstanding and have offered me a great deal of assistance over the past few months. Huge shout out to Derek Bronson and Thomas Buscaglia for their guidance and help.
I don't know of the pricing, but I would like to make it as accessible as possible. The kit is in its final stages and should be released within the next few weeks, however, nothing is guaranteed. I am continuing to polish the code and provide as much detail in the source as I can before release.
Phillip O'Shea
(Lead Designer)







About the author
Head of Violent Tulip, a small independent software development company working in Wollongong, Australia. Go to http://www.violent-tulip.com/ to see our latest offerings.
#2
02/25/2008 (11:14 pm)
Edit: Added a few pics ;)
#3
02/26/2008 (12:16 am)
Some people (like me) have experienced some camera jitter issues in scrolling games like this. Have you experienced anything like this? If so, have you addressed the issue?
#4
When the engine is updated and a fix provided, I will test out the kit and modify it to ensure that no jittering persists.
02/26/2008 (12:30 am)
The cause of the jitter, as far as I am aware, is still relatively unknown. I have done all that I can to reduce any visible jitter, but there are still issues with the engine which causes small problems with most scrolling games, including this one.When the engine is updated and a fix provided, I will test out the kit and modify it to ensure that no jittering persists.
#5
and will the TGB PSK be an official gg product (i.e available from the gg product page)?
Thanks!
02/26/2008 (3:14 am)
sweet! looking forward to its release. will it be priced like the TXB PSK?and will the TGB PSK be an official gg product (i.e available from the gg product page)?
Thanks!
#6
02/26/2008 (4:23 am)
Yes, nice work Phillip (and all involve), provided the price ain't crazy, I'd certainly like to purchase this as with the project on working on it should save a lot of scripting time and increase the focus on 'the game' itself rather then 'wheel inventing' so to speak ;-)
#7
Looks like an awesome job, my friend! Its about three weeks too late for me though. I already started a platform game, lol.
02/26/2008 (4:36 am)
Phillip,Looks like an awesome job, my friend! Its about three weeks too late for me though. I already started a platform game, lol.
#8
02/26/2008 (7:03 am)
Do you use behaviours or is it all done in code like the adventure kit?
#9
Sounds like a fine tool, congrats!
02/26/2008 (8:20 am)
Michael.. it was in the last paragraph of the opening statement...Quote:This kit is based on the Torque X Platformer design, including all of its major features and a few more. Everything you see below is customizable. Thanks to TGB's behavior system you are able to modify nearly any setting for any object in the game, it is that simple.
Sounds like a fine tool, congrats!
#10
02/26/2008 (12:25 pm)
Very, very cool! And I thought I would note (from the thread that Jay pointed out) that Melv is working on a number of the jitter issues.
#11
Any difference in price? Or will it be the same full price?
02/26/2008 (1:57 pm)
How about those who have purchased the PSK for Torque X?Any difference in price? Or will it be the same full price?
#12
I would imagine it will be a similar price to the TX PSK. Unfortunately for current TX PSK users, GG hasn't created this kit, so I don't think that current TX PSK users will get access to this kit for free.
02/26/2008 (2:07 pm)
Quote:I don't know of the pricing, but I would like to make it as accessible as possible. The kit is in its final stages and should be released within the next few weeks, however, nothing is guaranteed.
I would imagine it will be a similar price to the TX PSK. Unfortunately for current TX PSK users, GG hasn't created this kit, so I don't think that current TX PSK users will get access to this kit for free.
#13
02/26/2008 (2:10 pm)
@Phillip - OHHHH... So this kit was made separately from GarageGames. Just utilizes the same art as the one made for TX. So likely no break in price for those of us who already own the TX version.
#14
02/28/2008 (5:59 pm)
Wow, looks and sounds great Phillip! I think this is the kind of stuff the community needs more of: really nice, well-designed starter kits so that everyone isn't always re-inventing the wheel all the time. It sounds like you've also taken great steps to ensure the kit is expandable, which should help everyone out a lot. Can't wait to see it up on the GG store!
#16
02/29/2008 (12:17 pm)
It hasn't been tested on OSX, but it is written entirely in TS, so I would imagine that it will. If not, I will be around to help get it work and then update it.
#17
02/29/2008 (2:55 pm)
I am defiantly interested in the kit. It would be for the scripting examples. As I already have the PSK, the art assets are not a draw. Now if you would have different art, that would be a plus. Remember this as you are pricing it.
#18
Thankksss!!
A-jay
03/08/2008 (5:36 am)
Hi everyone!! i was wondering if there is any step by step tutorial for TGB pro and TGB platform starter kit? i only searched on Amazon and found a book on Torque and i am guessing its to do with 3D?? If anyone have any idea plz let me know. Oh! by they way, does any1 know how long left till the TGB starter kit gets released??Thankksss!!
A-jay
#19
As for the kit? It comes with some documentation describing the framework and also a small tutorial on how to create a basic level. All of this will be uploaded on Torque Developer Network (TDN) so I can update it easily and add more tutorials and guides.
03/08/2008 (12:45 pm)
There aren't any books on TGB, however it does ship with a lot of documentation and step by step tutorials. For the most part, the documentation supplied with TGB is really good, and the tutoorials cover a lot of the basics, but with most docs there are limitations. You are really going to need to get tucked in a get your hands dirty before you really learn anything.As for the kit? It comes with some documentation describing the framework and also a small tutorial on how to create a basic level. All of this will be uploaded on Torque Developer Network (TDN) so I can update it easily and add more tutorials and guides.
#20
Thank you
A-jay
03/08/2008 (1:56 pm)
Thank you for your reply, i would like to know when is TGB platform kit going to be released, i am just waiting for that so i can purchase it altogether, The TGB Pro and the TGB Platform starter kit.Thank you
A-jay

Torque Owner Cinder Games