Game Development Community

How do I just put a picture on the screen

by Stephen Triche · in Torque Game Builder · 06/22/2006 (8:24 am) · 1 replies

Is there a function that let's me just "put this ImageMap in this spot". The image doesn't need to have any fancy attributes attached to it like a typical object, I just want a block of pixels in a specific spot.

#1
06/22/2006 (10:56 am)
If you are using the level builder you can bring in the image using the Image Builder (look at the Project menu) and then drag it in as a static sprite and place it.

If you are wanting to do this from script you would do it much the same way, create the image map by using the Image Builder... (say testImage) and then you can use script to bring it into your world and place it.


new t2dStaticSprite(testSprite)
{
   scenegraph = SceneWindow2D.getSceneGraph();
   size = "100 100";
   position = "0 0";
}