RMMV Storing Event X Y coordinates in an array?

J2415

Villager
Member
Joined
Feb 1, 2019
Messages
11
Reaction score
9
First Language
English
Primarily Uses
RMMV
I am making a simple ABS for fun. The projectile event ID is 1 whereas the enemies ID could be 2, 3, 4, etc. Instead of creating a bunch of or statements for collision detection could you do a: If EventX(1) = array[eventids] then do this action?
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
5,702
Reaction score
2,250
First Language
Dutch
Primarily Uses
RMMV
there is glav_projectiles (which can turn into a powerfull abs simple).
if you want evented, you can look into YEP_SelfVarSw for self variables
and switches.

otherwise, you could check for each event or notetag <enemy>
during a scriptcall to call this, so no need for each XY and enemy ID's
 

Latest Threads

Latest Profile Posts

Mixing different pixi filters over a picture. :MV3:

lumina_in_space.jpg

I don't know if my game dev skills are improving... But my waifu making ones sure are. :LZSwink:
Who wants to solve a riddle from my game?
"I prayed for her to lay down her worldly habit and accept the invitation to change her life forever." From lost to found. From past to present, From frown to smile. From the way people treat her as nothing but something to say wow about. From faithless to faithful. From something no one wants to something valuable, someone will respect and love. Thank you, Jesus.
Two new amazing plugins from @NhatNguyen! Footsteps & Stamina. Video on Twitter showcasing:

Forum statistics

Threads
123,095
Messages
1,153,937
Members
161,423
Latest member
Sandrolion
Top