Jump to content

Recommended Posts

Posted (edited)

I'm trying to get a simple particle to work with a custom sprite animation, but when the particle gets spawned in it looks like this.
I've made a particle before that uses an item texture as its visual, which works perfectly.

But it seems like this one isn't using the right texture atlas or something like that? I'm not sure what's going wrong.

Particle class:
https://github.com/tessa19950/TheBigBang_1.14.4/blob/master/src/main/java/com/homebrewCult/TheBigBang/particles/MagicClawParticle.java
Particle type registry:
https://github.com/tessa19950/TheBigBang_1.14.4/blob/master/src/main/java/com/homebrewCult/TheBigBang/init/ModParticleTypes.java

 

Annotation 2020-08-04 140142.jpg

Edited by Tessa
Posted
Posted

So after some fiddling around I noticed in the screenshot that my custom sprites were added to the Texture Atlas you see,
It just wasn't showing the right part of that image which was because I had overwritten the getMinU, getMaxU, getMinV and getMaxV functions.
The reason I'd overwritten them in the first place was because I had an issue before where the game crashed if i didn't overwrite them, but it appears that something else was causing that first problem, I fixed it somewhere along the way, but now the overwrites were breaking the sprite.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.