Ok, this is what I'd do:
I'd either have a light that affects the object's color and then control the light's hue.
or
I'd have actually duplicates of each object(with different colors) and then hook them up to turn on and off.
If you're into python code(like I am), here's the code for making an object invis/vis:
- Code: Select all
##Note: You'll need to import Plasma and PlasmaTypes at the top of your file, here's the code:
from Plasma import *
from PlasmaTypes import *
##code to make object invisible
objName = "<your objectname>"
obj = PtFindSceneobject(objName, PtGetAgeName())
obj.draw.disable()
##code to make object visible
objName = "<your objectname>"
obj = PtFindSceneobject(objName, PtGetAgeName())
obj.draw.enable()
Ok, here's the code to make a lamp change color:
- Code: Select all
lampName = "<Your lampname>"
r = 1.0
b = 1.0
g = 1.0
intensity = 1.0
obj = PtFindSceneobject(lampName, PtGetAgeName())
PtSetLightValue(obj.getKey(), r, g, b, intensity)
There we go. If you don't want to have to program in python, I can help a bit with the coding. Just PM me.
SDLs aren't really the meat of thing, mostly what they're used for is to save the state if you leave the age, I don't usually use them.
If you have a clickable puzzle, Python's mostly what's going to be running it.
There are some inside-the-prp non-python stuff you maybe could do, but the documentation is hard to find.
If anyone can think of a better way of doing what Grogyan wants his age to do, please post.
~Lontahv
Currently getting some ink on my hands over at the Guild Of Ink-Makers (PyPRP2).