Game Development Community

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.

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.


#1
06/23/2009 (9:28 am)
%Modifier passes whether control keys are pressed, like "Control", "Shift". I've never tried to pass in my own variables to mouse click functions so I'm not sure what flexibiility we have there.
#2
06/23/2009 (9:33 am)
ok so these three are the only three ( you know of) that exist?