Projectiles that fire towards you

Hi everyone

I tried and failed last night to have fireballs coming out of the walls to hit my character last night, I was playing "the witches house" and thought I could make a good puzzle using the same sort of projectile (moves in one direction, when it hits you you're dead)

Unfortunately the flame always stopped a tile before it hit me, does anyone have a tutorial on how this might be possible, I'm sure I got it right and then ended up messing it up like a stupid idiot.

I think I'm posting in the right place, apologies if not!

Using mv btw!
Have you tried to set the through option for the flame, then checks their position with the one of the player?
'Games Mechanics Design' is for discussing aspects of game play at a more conceptual level. "How do I...?" questions go to the Support forum for the engine you are using, as answers will vary depnding on the engine. Unfortunately you don't specify which one that is, so I can't move this.

Please post and say which one it is. You might like to consider including that info under your avatar in case anything has to be moved in the future.

Thanks.
@Kes - he said MV (last line, but easy to miss)
Priority 'Below Characters' should solve your problem since the player is considered to touch the event when he steps on it. Of course it will cause your fireball to appear beloy your character but iy you add a nice animation to your event that won't be very noticeable. Otherwise 'Above Characters' should do the trick the other way (I prefer the 1st options but that's up to you). I didn't test it out but you might have to add a wait command to let this work properly.

If you want to use 'Same as Characters' you can always add a move command to your fireball event and move it toward player. That's the same of door quick events. In those events the event itself moves the player forward after activating the door.

There are many different ways to achieve this.
@Shaz thanks, I did indeed miss that.
Moved to: PRGMaker MV
use a boolean to detect _realX and _realY instead of _x and _y... also plus your velocity...

fireballs-o.gif
'Games Mechanics Design' is for discussing aspects of game play at a more conceptual level. "How do I...?" questions go to the Support forum for the engine you are using, as answers will vary depnding on the engine. Unfortunately you don't specify which one that is, so I can't move this.

Please post and say which one it is. You might like to consider including that info under your avatar in case anything has to be moved in the future.

Thanks.

Hi

Apologies about that, I'll be sure to do that in the future.

Thanks for the replies everyone I think this is making a bit more sense, so if I set the flame to through it goes through my character, sorry to be thick but how do I go about checking its position with the one of the player?

I think I tried going over and under and it seemed to pass by my player, I'm sure I'm just missing one detail that I'm doing wrong.
Thanks again.

Original thread: https://forums.rpgmakerweb.com/threads/projectiles-that-fire-towards-you.79049/