image change attribute
![starcat](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
ok, im trying to make a weapon store,
the idea is when the player clicks on the weapon, it destroys the actor and deducts the proper amount of gold. thats the easy part..
the part i cant seem to get working is the picture change in the HUD.
i thought it would be as simple as When mouse is clicked, do the gold behavior, destroy this actor, then Change attribute, Game.hud.display = image.self of the sword or whatever.. but its not changing the Hud image at all.
the idea is when the player clicks on the weapon, it destroys the actor and deducts the proper amount of gold. thats the easy part..
the part i cant seem to get working is the picture change in the HUD.
i thought it would be as simple as When mouse is clicked, do the gold behavior, destroy this actor, then Change attribute, Game.hud.display = image.self of the sword or whatever.. but its not changing the Hud image at all.
Comments
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
i have the weapon itself set to deduct 50 gold and destroy itself.
but i also tried to change an attribute to the HUD to add the image of itself(the sword) to the HUD. since the Change image doesnt have any kind of Tag i can attach to it im stuck.. i cant be like "change image of this"
its just like destroy actor. its always destroy this actor, not destroy another actor.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
believe you can also use 0 for false and 1 for true but I never do that so so cannot 100% confirm it.
___________________________________________________________________________________
TEMPLATES AND PROJECT HELP BY TENRDRMER. CLICK HERE!!!
AppSolute Entertainment on Facebook
AppSolute Entertainment on iTunes
correct?