(4.5.6) MoveToPlayer Monster Movement Speed

5kids2feed

Well-known member
As you can see with the original code, it will go anywhere the cursor is.. that's what i'm looking to achieve. It just moves like an iceberg.
Animation2.gif
 

CluckFox

Active member
Almost! Better than it was! Moves up, down, left, right, and diagonal which is great.. but doesn't move every single angle on diagonal like original code. Thanks so much for putting so much effort into it though. Is there a way to get it to move all angles instead of simple angles?
I know what you mean, thank you for the visual. I'm finding it quite challenging myself. I'll keep working on it though!
 

CluckFox

Active member
Try changing the projectile's End Animation to Repeat and End Action to Null. I'm curious if that would cause the projectiles to readjust themselves quickly mid flight?
 

5kids2feed

Well-known member
Oh they will change in mid flight but I don’t want them to. It’s a knife being thrown and I only want it going one direction if possible.
 

CluckFox

Active member
Oh they will change in mid flight but I don’t want them to. It’s a knife being thrown and I only want it going one direction if possible.
Which base module are you using? The modules do different things with aimed (MoveTowardsPlayer) physics. I'm getting lots of help and instruction on the matter on Discord now.
 

5kids2feed

Well-known member
You’re going above and beyond! You’re the man! The base I started with is the arcade platformer non scrolling one.
 

CluckFox

Active member
Kasumi on Discord patiently explained everything I wanted to know about Aimed Physics. The end result is that, it seems, the doHandlePhysics.asm script for Arcade Platformer doesn't have the same capabilities as some other modules. I think I can transplant the relevant part and provide an updated physics script, but again, I want to test this on my own first.
 

5kids2feed

Well-known member
You’re so awesome for going through all of this trouble for me. I would’ve been lost. But makes sense all at the same time the way you’re explaining it. Crossing my fingers!
 

CluckFox

Active member
How's this look? It's using a modified physics script with your original AI script. The projectiles in this video can go even faster, the max speed slider is at 129 here.
oPKO0rM.gif
 

5kids2feed

Well-known member
I see the image on both posts! That's exactly what i'm looking for! CluckFox! You are a genius! You're getting a big ol' special thanks in the credits!
 

CluckFox

Active member
Here's a link to the code. It will self-destruct after 24 hours. I do not deserve any kind of credit. Kasumi pointed out the obvious to me and I just did a little copy-paste surgery on the Arcade Platormer physics. Enjoy!

 

9Panzer

Well-known member
Any chance we can get this code posted again? I've been fighting with this one sinces December :D
 

5kids2feed

Well-known member
I’ll post my doHandlePhysics asm for you today too. Seems like you were having a bunch of the same problems, I did! 🤣
 
Top Bottom