I need help making custom objects with SOC.

MrBoingBD

"Just a guy who loves adventure!"
I'm trying to make a custom cactus object, It appears in the ZoneBuilder visual mode. but not in-game.
There are also no Errors in the console.

Here's some media to make it easier:
Screenshot 2024-04-22 172507.png

Screenshot 2024-04-22 172613.png

srb20069.gif
 
I'm trying to make a custom cactus object, It appears in the ZoneBuilder visual mode. but not in-game.
There are also no Errors in the console.
Your sprite name for the cactus (CACTBL) is too long. Sprite names must be four letters followed by the frame letter and angle number, but you have six letters. Instead of CACTBLA0, try CABLA0. Make sure to update the freeslot declaration accordingly, along with the rest of your SOC.

Also, your SOC is incorrect. Use SpriteName = CABL instead of what you currently have (essentially, remove the SPR_ prefix on that line only, you don't use it in state definitions). You also need to include an = sign after the word "action."

Finally, did you edit the sprite offsets in SLADE at all?
 
Your sprite name for the cactus (CACTBL) is too long. Sprite names must be four letters followed by the frame letter and angle number, but you have six letters. Instead of CACTBLA0, try CABLA0. Make sure to update the freeslot declaration accordingly, along with the rest of your SOC.

Also, your SOC is incorrect. Use SpriteName = CABL instead of what you currently have (essentially, remove the SPR_ prefix on that line only, you don't use it in state definitions). You also need to include an = sign after the word "action."

Finally, did you edit the sprite offsets in SLADE at all?
I have not edited the sprites offsets. I'll try doing all this. Thanks a bunch.
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top