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.

irludure

Members
  • Joined

  • Last visited

Everything posted by irludure

  1. I already have a HurtByTargetGoal() setup and a MeleeAttackGoal(). They work correctly, I just can't seem to find out how to check if it is targeting something currently.
  2. So I made an elephant, but I'd like to make it so that when it is going towards a target, it uses a run animation instead of a walk animation. Here is my current code: private <E extends IAnimatable> PlayState predicate(AnimationEvent<E> event) { System.out.println("Attempting predicate..."); if (event.isMoving()) { System.out.println("IsMoving = true!"); if (getTarget() != null) { System.out.println("Target != null!"); event.getController().setAnimation(new AnimationBuilder().addAnimation("run", true)); } else { System.out.println("Target is null..."); event.getController().setAnimation(new AnimationBuilder().addAnimation("walk", true)); } return PlayState.CONTINUE; } event.getController().setAnimation(new AnimationBuilder().addAnimation("idle", true)); return PlayState.CONTINUE; } It uses the getTarget() method from the Mob class. However, it doesn't ever use the run animation, even if it is going after a mob. It still prints "Target is null...". And, the getTarget() method returns null everytime. Does anyone know how to fix this?
  3. Basically, I was wondering if it was possible to make it so that if I teleport somewhere, then on everyone else's screen, I don't just instantly teleport, but I have kind of like a motion blur effect on the character so that it looks like I just go somewhere very fast, rather than teleporting? Kind of like how the flash goes so fast that you can see the motion blur.

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.