realbasic-games
[Top] [All Lists]

Sprite question

To: realbasic-games at lists dot realsoftware dot com
Subject: Sprite question
From: "Dobbs, Paul" <paul dot dobbs at lmco dot com>
Date: Tue, 14 Dec 2004 11:12:02 -0600
Delivered-to: realbasic-games at lists dot realsoftware dot com
Thread-index: AcTiAAdHEq/vkE8LQ+OTbRlTH1cLRg==
Thread-topic: Sprite question
I am building an application to train people how to use a new signaling
system at a model railroad club I belong to. It's basically a simulation
of a part of a railroad.

So far, I have the track diagram drawn as the background to a sprite
surface, and have train symbols that I can run over the diagram,
following the switches and detecting collisions.

Now, I need to add the signals. (Sort of like traffic signals, only
green is on top!) I can either add them as sprites or on the background.
They don't move, but their appearance changes. If I put them on the
background, I need to somehow have them redrawn when the lights change.
How do I do this? Is redrawing them on the background picture
sufficient? (It doesn't seem like it should be.) I noticed in the
language reference that there is a PaintTile method. Is this what I use?
If so, how do the parameters (X and Y) relate to the position in the
background of my signal?


Paul Dobbs
Software Engineer, Staff 
Lockheed Martin Missiles and Fire Control--Dallas
Phone (972) 603-1244
Fax (972) 603-2017

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>