Game Development Community

Noob Collision Question

by Arthur Yanthar · in Torque X 2D · 10/10/2009 (3:43 pm) · 2 replies

Hi, I am new to Torque X 2D, and what I want to do is make a maze game and when the player collides with the finish point, a message will appear saying something like "You win!", and then the game will exit. How will one be able to do so? Thanks in advanced for any help!

#1
10/11/2009 (1:07 am)
You can enable collision on your finish line object, or use a t2dtrigger component. In either case you will need to make a delegate that handles the collision or trigger to handle what you want to happen.
#2
10/11/2009 (1:09 am)
I suggest you run through the tutorials found in the official documentation, as they will give you an idea on this:
http://docs.garagegames.com/torquex/official/