Game Development Community

Common Collision Stuff

by rennie moffat · in Torque Game Builder · 09/02/2009 (1:58 pm) · 1 replies


Could anyone tell me what is wrong with this situation. A very simple collision/detection/response mechanism for my player the his floor.


1. I have a player,
collisions have been set to variant things, layers, collision layers groups etc. A very simple process. I lined it up so that my player layer 0, would send and recievce collisions. My players collisions layers and groups were both set to 1 (and all, many different variations) and my player would fall through the ground (after I had him working fine - just made a few changes, practice runs as I am learning still). Now tho, my player is gone completely! Before he would fall through the floor that was not registering, but now he is just never there on screen, tho he is there with in the TGB console. I have him classed as player class




EDIT:
So I have just noticed something. I class him as playerClass and name him player (as properly coded in my script) When this situation is true, he does not appear when my game is loaded. However when I class him as player and do not name him anything. He does appear, but has not controls linked to him, which he had before using the identical code.


:
What I am wondering is, can anyone see, tell me of a common, obvious error I might be making?

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
09/02/2009 (2:00 pm)
ps my floor is a tileMap with tileMaps (floor) set to collide, green boxes and all are on.

Again, I am trying multiple variations on collisions layers and groups selected, etc. So far notta.

thanks.