image swap
by rennie moffat · in Torque Game Builder · 06/23/2009 (9:10 am) · 2 replies
Variables involved,
I am trying to figure out which possible variables I could, need to involve in a game where i click on a ball, and inside of it, post onMouseUp a new image appears inside of the ball.
Inside the Tic Tac Toe tutorial I found this line of code
function BoardTile::onMouseUp(%this, %modifier, %worldPos,)
{
if (%this.frame==$nonePlayer)
I would just like to get a few things straight.
%modier is what?
and what other variables could I include in this?
Or if anyone has any alternate suggestions of how to swap an image.
I am trying to figure out which possible variables I could, need to involve in a game where i click on a ball, and inside of it, post onMouseUp a new image appears inside of the ball.
Inside the Tic Tac Toe tutorial I found this line of code
function BoardTile::onMouseUp(%this, %modifier, %worldPos,)
{
if (%this.frame==$nonePlayer)
I would just like to get a few things straight.
%modier is what?
and what other variables could I include in this?
Or if anyone has any alternate suggestions of how to swap an image.
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.
Torque Owner Nikos Beck