Knuckle Cracker

Creeper World 3 => The Coder's Corner => Topic started by: TLFP on January 12, 2016, 02:27:21 PM

Title: How do you set sub images? (SOLVED)
Post by: TLFP on January 12, 2016, 02:27:21 PM
Question in title.
Title: Re: How do you set sub images?
Post by: Grayzzur on January 12, 2016, 02:29:25 PM
Just make up a new name instead of "main", and assign it the same way as "main" in CRPL code. Use the Z-order when setting image position to alter which image is on top.
Title: Re: How do you set sub images?
Post by: TLFP on January 12, 2016, 06:00:24 PM
Quote from: Grayzzur on January 12, 2016, 02:29:25 PM
Just make up a new name instead of "main", and assign it the same way as "main" in CRPL code. Use the Z-order when setting image position to alter which image is on top.
Just realized that since I completed the Arc Eternal missions I could have loaded Chimera into the map editor to figure it out.  :)
Thanks for the exact way of doing it.  :D ;)
Title: Re: How do you set sub images?
Post by: GameGibu on January 22, 2016, 08:08:52 AM
Just to clearly answer the question above so that this topic can be marked as resolved, here is how you can set sub-images.


SetImage(Self "main" "Custom0") #sets the image in the slot "main" to the image "Custom0".

SetImage(Self "myImageSlot" "Custom1") #sets the image in the slot "myImageSlot" to the image "Custom1".

GetImage(Self "myImageSlot") #pushes "Custom1" to the stack.


When you specify a slot, you use that name to deal with the image in that slot in operations such as SetImageRotation, SetImageScale, SetImageColor, SetImagePosition, and others.

Hope this helps so that this can be marked as resolved.
-GameGibu