Previous Blog Next Blog
Prev/Next Blog
by date

Behavior Contest - Round 1

Behavior Contest - Round 1
Name:Glenn Prince 
Date Posted:Jan 12, 2008
Rating:Not Rated
Public:YES
Comments:YES
RSS Feed:GarageGames Blog feedor Subscribe with .
Profile Page:View profile page for Glenn Prince

Blog post
Well, I only just made it ! I have just finished sending my entry into the contest. Unfortuntaly I didn't get to put everything in that I wanted to as I got a little side tracked looking into some other things. Firstly here is the Checklist:

* You will create a behavior that can be attached to an animation that will allow the user to select their
desired keys, joystick, or mouse click for left and right movement and a jump function within the TGB
editor. The user must be able to edit the movement and jumping speed within the TGB editor. The
user must be able to select what animation they want to use when the character moves left, moves
right, jumps, and falls within the TGB editor.


This one was the fairly easy part, basicly I set most of the stuff up I do using variables anyway so this is just an extension of that. The options I have enabled for modification are:

Movement Keys - Left/Right/Jump
Run Speed
Dash Speed
Jump Height
Dash Buffer <Number of seconds between key presses>
Surface Run Angle <Not Working>

I didn't get time to add a link to the animations for the movement other than calling animations what you need.

* You will create a behavior or add to your existing behavior the ability to perform a double jump. The
double jump must only function when the user presses the jump button near the peak of the jump
animation. The user must be able to turn the double jumping ability on/off with a check mark box in
the TGB editor.


I had a heap of trouble doing this, mainly due to the fact I couldn't get the movemap.bindCmd working properly within a behavior function but I got there in the end. The only thing I did forget to do is put in an "off" switch.

* You will create a behavior or add to your existing behavior the ability to dash when either direction
has been pressed twice rapidly. There is no requirement for it to call a separate animation for the
dashing ability but the dashing ability must be visibly apparent


This was fairly easy, in the end I just used a timer on the key press to keep track of the "dounbe tap" and used a sped up running animation to distinguish it.

* You will create a behavior or add to your existing behavior the ability to mount the camera to an
animation. This behavior must allow the user to set the amount of force from within the TGB editor.


Fairly easy with this one too, simple mount command with the ability to set the force and offset within the behavior.

Getting back into it has sparked a whole heap of idea's on what I can addon to this so I guess I'm going to keep playing ! Would of been nice to have the whole weekend to do it though I might try and add a few more things to expand if I make it to the next round.

Recent Blog Posts
List:01/12/08 - Behavior Contest - Round 1
09/08/06 - Programming platformer games in Torque Game Builder

Submit ResourceSubmit your own resources!

Donald \"Yadot\" Harris   (Jan 12, 2008 at 15:03 GMT)
Glenn, I am so happy that you enjoyed yourself. But most of all I am happy that the contest help spark your imagination. This is what it is all about gettingt he community back into the creation phase. I think for a while now the community has been low on new creation hopefully this comp will help spur us back into a creation mode!

Good luck!

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