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,738
Reaction score
2,265
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

After a little test with the parallax mapping, found it lags like a cat on a leash. Instead of the original idea to parallax map the entirety of the ship, I guess I'll settle for editing the tilesets. Probably should have done that first. :kaosigh:
So I kinda came back and learned how to mod other RPG Maker games so... Hello everyone!
Captura-de-pantalla-475.png
Version 1.0.1 done! Now finally free time... oh
Capture.PNG
I'm Really proud of how my game over screen looks!
UldJFr1.png
I felt inspired by a piece of art I saw. So I made this.

Wanderer Doge.png

Forum statistics

Threads
123,282
Messages
1,155,474
Members
161,678
Latest member
brideinmydreams
Top