Event icon covering four tiles without going underneath it?

Koi

Veteran
Veteran
Joined
Aug 8, 2013
Messages
358
Reaction score
14
First Language
English
Primarily Uses
RMVXA
So I know you can make event icons that take up four tiles by using the image prefix "$", but I found that when you try move around it, you go underneath or behind it. I want to make a movable item (like, where it has a set move route to move away from the player whenever it's touched) that takes up four tiles, but does not allow you to go behind it or underneath it (unless "Through" is checked).
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
The prefix $ has nothing to do with how many tiles are taken up by an event sprite. $ simply means there is ONE character on that character sheet, and not 8. Even if you had 8 characters (no $) you could still make them as big as you want - they just all have to be the same size.


I had done a script that would give an event a larger 'base' for collision (so you couldn't walk under it), but it only really worked for events that didn't move. It checks whether the player collides with it, not whether it collides with anything else. It would need a bit of work to be able to do what you are wanting.


Aside from a scripting solution, the only thing I can think of is to create additional events on either side, that are set to the same priority as the event with the sprite, and have a parallel process trigger that continually checks the position of the 'key' event and moves to be to the right or left of it. If you do this, make sure you add a Wait at the start or the end so it doesn't cause lag.
 

Koi

Veteran
Veteran
Joined
Aug 8, 2013
Messages
358
Reaction score
14
First Language
English
Primarily Uses
RMVXA
Aside from a scripting solution, the only thing I can think of is to create additional events on either side, that are set to the same priority as the event with the sprite, and have a parallel process trigger that continually checks the position of the 'key' event and moves to be to the right or left of it. If you do this, make sure you add a Wait at the start or the end so it doesn't cause lag.
Woah. I have no idea how to do that.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Leave it with me for a bit. I'll see if I can modify my existing script to handle the rest.
 

Koi

Veteran
Veteran
Joined
Aug 8, 2013
Messages
358
Reaction score
14
First Language
English
Primarily Uses
RMVXA
Leave it with me for a bit. I'll see if I can modify my existing script to handle the rest.
Thanks, Shaz ;v; You've been so helpful.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I've almost got it working. Just have to allow 'large' player sprites to activate events from further away than the next tile now.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,583
Latest member
write2dgray
Top