[RESOLVED] Damage from events passing above the player?

Status
Not open for further replies.

BreakerZero

Veteran
Veteran
Joined
Jul 8, 2018
Messages
972
Reaction score
417
First Language
English (USA)
Primarily Uses
RMMV
I'm working on a "split pieces" boss where you have to engage the enemy four times (once for each quarter of hp) but after each round (or if you don't engage within a second and a half) the boss splits and you have to chase its pieces before you get another crack at doing damage. (+1 if you get what the boss is built against.)

Anyway, I have tried like two different approaches to the split - one at player level (but that only extends the fight due to roadblocked pieces) and the other above the player. Now to really nail the homage that I'm going for I want to check in my logic for the X and Y of a given piece (for movement only the X is important) and if the player is standing under the piece at the wrong moment incurs a set amount of damage for the collision. Any ideas?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
32,333
Reaction score
8,072
First Language
German
Primarily Uses
RMMV
parallel process, but you need to add waits to prevent unneccessary lag as well as to prevent getting damaged sixty times per second.
 

BreakerZero

Veteran
Veteran
Joined
Jul 8, 2018
Messages
972
Reaction score
417
First Language
English (USA)
Primarily Uses
RMMV
That did it. Thanks again!

EDIT: As a heads up, it is still possible to dodge the pieces at the very last second... and it also doesn't account for your follower settings. So this obviously ain't foolproof.
 
Last edited:

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
41,839
Reaction score
14,502
First Language
English
Primarily Uses
RMMV

I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.



This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

They're watching...
Unbenannt.png
currently working on some template sprites and tweaking the walk cycle :)
Lunee.jpg
Early try to draw our Demon Countess, who destroyed her own soul leaving just an empty shell of a body - until our heroine unwillingly takes possession of it, every time she falls asleep.
(I know it’s a premade face from the Dark Fantasy Set, but I spent so much time with her, that I can’t bring myself to change the sprite anymore xD)
I finished setting up my new desk and apparently she thinks this is where she goes now.

20210411_082331.jpg
not me baking a pie because i was inspired by celeste

Forum statistics

Threads
110,297
Messages
1,052,067
Members
143,329
Latest member
YukiSanMoji
Top