realbasic-games
[Top] [All Lists]

Re: Swapping Sprite Images RB3D

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Swapping Sprite Images RB3D
From: Lars Jensen <larsjensen at rcn dot com>
Date: Wed, 28 Jul 2004 13:43:39 -0400
Delivered-to: realbasic-games at lists dot realsoftware dot com
> I have a flat sprite added with AddShapePicture and a set of
> pre-rendered rotations, now I want to swap the images when the the
> left/right keys are pressed.

If you have called AddShapePicture for all the images, then you can just set
the Object3D.Shape property to switch among them.

(Of course you'll also need to call RB3DSpace.Update at some point, to make
the shape change visible onscreen.)

lj

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

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

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