case
by rennie moffat · in Torque Game Builder · 08/19/2009 (10:44 am) · 22 replies
I am in a tut which uses the term "case" in an updatePlayerAnimation function. I am unsure what "case means as when I search it I get other tuts but no definition. Any one have a quick explanation?
function updatePlayerAnimation()
{
// Grab the desired direction of movement.
%move = $moveRight - $moveLeft;
%jump = $jump;
// The state machine. The current state of the player is determined, and
// based on some rules that can change that state, the state is updated.
switch ($player.state)
{
// Standing still.
case $playerStandState:
// If suddenly the player is not a surface, start falling.
if ($runSurface < 0)
setPlayerState($playerStandFallState);About the author
My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.
#22
08/19/2009 (4:03 pm)
u dont even know how to ask for the bill........ i dont even knwo how i dare think you cold even attempt to amke a game.
Torque Owner rennie moffat
Renman3000