controling texture animates sprites

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.

controling texture animates sprites

Postby dendwaler » Wed Jan 13, 2016 12:45 pm

Hi ,
i need to switch the texture animation of a sprite on and off with a button press.
Simply , offstate is fully transparent and on is the texture as needed.
As long as the this is a plane with an animated texture all works flawlessly,
but when i change the plane to a sprite its broken.

You adress objects as an example as

receivers:
- 006D:<Objectname>

For sound this is.
receivers:
- 0011:<Soundemittername>

For a texture :
receivers:
- 0043:<materialname-texturename>


And i think a sprite will have also a hexnumber to adress it

Is there anyone who knows this?

Anyhow ascript like this won't work for a sprite but will for a plane.


- params:
cmds:
- continue
receivers:
- 0043:<mat-tex>
type: animcmdmsg
waiton: 0


Any suggestions?
Those wonderfull Worlds are called " Ages" , because that is what it takes to build one.

Image

Watch my latest Video Or even better..... watch the Cathedral's Complete Walkthrough made by Suleika!
User avatar
dendwaler
 
Posts: 870
Joined: Mon Jun 22, 2009 10:49 am
Location: Nederland

Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest

cron