Chargin' Chuck Effect Help

Post here for help and support regarding LunaLua and SMBX2's libraries and features.
Cognition
Dolphin
Dolphin
Posts: 83
Joined: Sun Oct 05, 2014 10:13 pm

Chargin' Chuck Effect Help

Postby Cognition » Mon Jan 31, 2022 6:46 pm

I'm not 100% sure if this can be fixed with Lunalua, but the effect that happens right after I stomp on my custom graphic Chargin' Chuck clips into the ground or in come cases above me. This is all in SMBX2.0.
If anyone can help me out with this that would be great. I'm also sorry if I posted this in the wrong place. This seemed like the only thread that made sense.
Image
Larger video:
https://i.imgur.com/Jh7oexB.gifv

deice
Volcano Lotus
Volcano Lotus
Posts: 549
Joined: Fri Jul 23, 2021 7:35 am

Re: Chargin' Chuck Effect Help

Postby deice » Mon Jan 31, 2022 7:16 pm

could you attach a file containing the graphics, txt files and any lua you used? without knowing what settings you've overridden, it's hard to help you beyond making conjectures.

Cognition
Dolphin
Dolphin
Posts: 83
Joined: Sun Oct 05, 2014 10:13 pm

Re: Chargin' Chuck Effect Help

Postby Cognition » Tue Feb 01, 2022 7:16 pm

Of course. Here are the images.
Image
Image
Image
Image
Here is also the graphic txt document.
gfxwidth=94
gfxheight=88
width=94
height=8
And finally here is just everything to download in a .zip file.
https://www.mediafire.com/file/zrakomg6 ... k.zip/file

deice
Volcano Lotus
Volcano Lotus
Posts: 549
Joined: Fri Jul 23, 2021 7:35 am

Re: Chargin' Chuck Effect Help

Postby deice » Wed Feb 02, 2022 6:25 am

Cognition wrote:
Tue Feb 01, 2022 7:16 pm
height=8
this seems to be what's causing the issue. smbx calculates height from the bottom of the sprite. so, when the chuck is hit, the effect isn't spawned near the top of the sprite like usual, but rather near it's feet, making it look like it's inside the ground. changing the height to 88 (the height of the image) and making a new txt file for effect 252 which contains

Code: Select all

[1]
yOffset=28
fixed the issue on my end. (keep in mind that yOffset should be set to the height of the chuck minus 60, as the effect is 60 pixels tall)
hope this helps

Cognition
Dolphin
Dolphin
Posts: 83
Joined: Sun Oct 05, 2014 10:13 pm

Re: Chargin' Chuck Effect Help

Postby Cognition » Wed Feb 02, 2022 4:57 pm

This helps tremendously! Thank you so much. The problem is fixed. I won't have to scrap my plan for these guys. It was also a typo for that "8". It really was meant to be "88". Thanks again for spotting my mistake and helping me out.

PinkTeddy
Shy Guy
Shy Guy
Posts: 5
Joined: Mon Apr 26, 2021 1:33 pm
Pronouns: he

Re: Chargin' Chuck Effect Help

Postby PinkTeddy » Sun Jun 19, 2022 7:35 am

Thanks for using my charging' chuck, and the death animation did a great job!


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 4 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari