Previous Blog Next Blog
Prev/Next Blog
by date

TGB Gaming Goodness

TGB Gaming Goodness
Name:Matt Huston
Date Posted:Jul 06, 2006
Rating:Not Rated
Public:YES
Comments:YES
RSS Feed:GarageGames Blog feedor Subscribe with .
Profile Page:View profile page for Matt Huston

Blog post
Purchased TGB before it went release about a month ago. Been touching it on and off and doing the tutorials which were included. Capabilities are very cool and love how well documented the engine is.

Recently, I wanted to delve into a project that wasn't straight from the tutorials. I decided to create a platformer where the goal is to collect coins. I learned a lot while completing it, since most everything was from scratch. There is a platformer tutorial but I had a hard time trying to follow it so I basically wrote it myself with some help as well from the TGB message boards. So the character can run, jump, and collect coins. The problems I did have were when the player jumped and landed back on the ground, he would move slower than he had previously. I had tried to change his gravity to nothing when he landed but then he would walk straight off the platforms without falling. The one-way collision code helped me cure this problem. The result is 3 levels, 90 seconds each, where you have to collect 50 coins each. I've had a couple friends demo it and they found it really addictive. I have had a couple problems with collisions on other peoples machines. I am not sure if this is my code or TGB's physics system wacking out because of low frame rates (which I have heard and saw when I tried to record my game with Fraps).



Have some other TGB game projects in my head. If I have time I'll continue on to those while I finish getting all the tweaks into this.

Recent Blog Posts
List:04/19/08 - Back to the future
07/06/07 - Resource Dump - GuiAnimatedCrosshairHud, guiObjectSelectionHud
04/30/07 - ModMaker, TGB, TorqueX and More
11/19/06 - Dev-Diary #4 - Action RPG :: Talking Heads
10/31/06 - Persistent Items and Mission Objects
10/28/06 - Dev-Diary #3 - A single player action-RPG
07/31/06 - TGB RPGness Part 1 (Inventory)
07/06/06 - TGB Gaming Goodness

Submit ResourceSubmit your own resources!

Chris \"C2\" Byars   (Jul 06, 2006 at 22:20 GMT)
Super Mario Bros. ftw!

Blake Lowry   (Jul 07, 2006 at 18:07 GMT)
Hehe, already looks fun :)

Benj Edwards   (Jul 09, 2006 at 17:08 GMT)
I'm thinking about making a platform game myself. Is there anyway you can share what you've learned in making your coin collecting game? Also, I'd love to play it!

David Higgins   (Aug 20, 2006 at 09:45 GMT)
Matt, as Benj said, mind helping out the newbs with some educational tips and tricks as to how you accomplished this? The platform tutorial is sadly only available on TDN from my understanding, and I'm not yet a licensed owner of TGB. I plan to be, but am still testing a few things out and just started working on a platformer of my own -- with basically the same concept as yours, in the Super Mario Bros genre of collecting things and 'stomping' on enemies. I'm doing this more or less to determine how complicated it will be, and am running into issues with jumping. I was hoping to use an Impulse force to jump and a constant force to push the player back down to the ground, but am failing miserably.

I set a constant force pushing down on the character, but it seems to be completely ignored. When I apply an impulse force, the character moves upward and, using the setDamping() I managed to get the player to stop moving upward after a short while. Was hoping to be able to possibly pull this off as a smooth jumping action, allowing my left/right velocity movements to continue to take affect while in a jump.

Any helpful words would be appreciated. Thanks.

You must be a member and be logged in to either append comments or rate this resource.