Game Development Community

How to create a map with pop ups

by Ashley Salazar · in Game Design and Creative Issues · 01/28/2012 (6:47 pm) · 1 replies

I have all the elements for a map that I want to create, however, I want each piece of the map, when the mouse passes through it, to show a pop up description of that specific area.

How do I accomplish this?

#1
01/31/2012 (9:40 am)
A few ways - you could use t2dSceneObjects that handle mouse events, then use the onMouseEnter and onMouseLeave callbacks to set your pop-up text. In Torque 3D I'm thinking you'd use the GUI elements' mouse events to do the same. Actually, you could use GUI elements in (i)Torque 2D as well....

Hope that gets you started in the right direction!