%tilePosition
by rennie moffat · in Torque Game Builder · 08/11/2009 (9:55 am) · 4 replies
I am looking to build a pac man like maze game. In such, I believe using a tilePositioning system would work best as it would only allow for exact, linear movement. Move straight up, or straight across, thats it, no in betweens. So what I am wondering is... I want the mouseDown to control, or set the movement. MouseDown only has the variable %worldPos, how would I relate %worldPos to %tilePosition?
ps. I know there is a tilePositioning ref in here somewhere, tho I currently cant find it. If you have the link, please post it.
ps. I know there is a tilePositioning ref in here somewhere, tho I currently cant find it. If you have the link, please post it.
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.
#2
Obviously the hero would need to recognize %tilePosition and so would the mouse. I am just trying to think of how this would work exactly, in terms of what files (.cs) articles I would need to create.
I have been looking for a tut/lesson/guide on using %tilePositions but can't find it. Anyone no where it might be? it had something to do with a maze game and tilePosition. but I search that and notta.
:?
08/11/2009 (3:36 pm)
yes it defnly does, but just thinking aloud. I imagine I would need a tileboard.cs or something of the like?Obviously the hero would need to recognize %tilePosition and so would the mouse. I am just trying to think of how this would work exactly, in terms of what files (.cs) articles I would need to create.
I have been looking for a tut/lesson/guide on using %tilePositions but can't find it. Anyone no where it might be? it had something to do with a maze game and tilePosition. but I search that and notta.
:?
#3
Or are you trying to use distinct images to replicate the tilemap system?
do you have any script code that shows what is not working at the moment?
08/11/2009 (6:42 pm)
Are you using tile layers and the tilemap?Or are you trying to use distinct images to replicate the tilemap system?
do you have any script code that shows what is not working at the moment?
#4
Tho I am very unsure as my player and walls are very different in height/width. PLease see this thread, it may explain it much better. www.garagegames.com/community/forums/viewthread/99303/1#comment_form
But using a tile map, with an image underneath i possible.
And no, I don't have any code yet, which would help explain the problem.
08/12/2009 (9:33 am)
Well, I am not actually there yet. Tho I came up with 2 approaches last night.Tho I am very unsure as my player and walls are very different in height/width. PLease see this thread, it may explain it much better. www.garagegames.com/community/forums/viewthread/99303/1#comment_form
But using a tile map, with an image underneath i possible.
And no, I don't have any code yet, which would help explain the problem.
Torque 3D Owner Ted Southard