change image in actor doesnt work??
Hi there!
I'm new @ gamesalad and I have question about random images.
I've tried everything I can find on the forums but stil keep getting white boxes when the image changes.
I have an actor wich has a image called "blanc". this is a transparent image.
I want this image to randomly change into "test2.png" and "test3.png"
I've got the following rule in this actor:
if self.image is blanc
do
timer
after random(1,7) sec. ( run to completion is thicked)
change attribute
set self.image to "test"..random(2,3)
What am I doing wrong??
It changes into white boxes..
Also I want it to change back into blanc after random 1 to 3 seconds.
Any suggestions?
There are many posts about spawning actors in different places but sadly not so much about changing image randomly.
hope someone can help!
Comments
What you describe should work. Getting white boxes implies you have not correctly formatted your change attribute. Put a display text in and have it display the image name, and double check that what the image gets changed to is a valid image name.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support