I need help making custom objects with LUA.

MrBoingBD

"Just a guy who loves adventure!"
(EDIT: outdated post, please look at the most recent)

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
 
Last edited:
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.
 
Alright, so this thread is still relevant. As I changed to Lua instead. But I'm still having the same issues.

Here's some media to make it easier:



EDIT: This thread is now irrelevant has I got things figured out.
 

Attachments

  • srb20090.gif
    srb20090.gif
    2 MB · Views: 122
  • Screenshot 2024-05-05 152831.png
    Screenshot 2024-05-05 152831.png
    938.2 KB · Views: 66
  • Screenshot 2024-05-05 152811.png
    Screenshot 2024-05-05 152811.png
    91.9 KB · Views: 78
Last edited:

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

Back
Top