Game Development Community

WhackAMole Issue on Mac

by Kenneth Malone · in Torque Game Builder · 07/17/2006 (8:18 pm) · 4 replies

I'm stuck on page 2 of "Respawning the Mole in the WhackAMole". Has anyone had trouble and solved the problem of getting "respawnPointDatablock" to appear in the CREATE tab/Datablock selector.

I've used the code sample as provided.
I'm on an iMac-G5.

#1
07/23/2006 (12:33 pm)
Hit the play button in the level editor & then go back to the editor from the game. should be there.
#2
07/23/2006 (1:42 pm)
Hitting play will work, but if you exit TGB and go back in the datablock won't be there again and it will have been removed from all the spaw points.

If you move your exec call from inside startGame() to above it (so it's in the global file scope) then your datablock should be there without having to hit play.
#3
07/23/2006 (3:15 pm)
Yeah, I found that out too. You have to hit "play" every time you open up TGB. Then I found out TGB doesn't need to be exited/opened to have scripts be compiled, it compiles on the fly. That made it easier. :)
#4
08/03/2006 (8:56 am)
Yes, Kenneth,

I had this exact problem. Not sure why it occurs, but I checked the console and it seems when you run the game, it compiles game.cs and its exec'd files but NOT when you're in TGB. It just exec's game.cs

What I found worked, was to transfer the datablock into game.cs (as in MyFishGame) - that allows you to see and use the datablock. What the others said :)