Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

Everything said above may be absolutely wrong. No rights reserved.

  • Author

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.