Hello all!
I took a break from my project due to life getting busy and now that I'm back, I'm feeling a little rusty and fear that I'm missing something simple.
I'm using Galv's Map Projectiles plugin to call a projectile. Setting it up and using it as normal isn't a problem. My issue is that I'd like to track the (x,y) of the projectile once called and see if it intersects with an event. I know the plugin tracks the (x,y) so that it can do what it does, but I'm not sure how to reference the projectile in a script call.
I'd like to use something close to this script call
to see if the projectile intersects with an event. If it returns 0, it would play an offset animation. If it returns a number, then it won't do anything and play out as normal. This way I can have the projectile appear to play the animation whether or not it hits an event.
I just can't seem to figure out what
I took a break from my project due to life getting busy and now that I'm back, I'm feeling a little rusty and fear that I'm missing something simple.
I'm using Galv's Map Projectiles plugin to call a projectile. Setting it up and using it as normal isn't a problem. My issue is that I'd like to track the (x,y) of the projectile once called and see if it intersects with an event. I know the plugin tracks the (x,y) so that it can do what it does, but I'm not sure how to reference the projectile in a script call.
I'd like to use something close to this script call
Code:
$gameMap.eventIdXy(projectile.x, projectile.y)
to see if the projectile intersects with an event. If it returns 0, it would play an offset animation. If it returns a number, then it won't do anything and play out as normal. This way I can have the projectile appear to play the animation whether or not it hits an event.
I just can't seem to figure out what
projectile.x and projectile.y are actually supposed to be :/