Is there a way (either via script or something I'm overlooking) to make an event appear below the player but not something you can walk on? This event can move, so I can't use regions or non-passable tiles. I'm open to just about any other possibility. Thanks!
Event below player but not passable?
RGSSx Script SupportAlright, I might be missing something but... Why have it below the player if you don't want the player capable of stepping on it?
My thoughts too. Perhaps if you explain what this event is and why you don't want to set it to the same level as the player, we might get a better idea of your goals. It may be that you're not taking the best approach.
If you insist -- it's a very complicated game and very specific scenario.
I'm working on an event-driven home-builder. I have it working very nicely, though it is admittedly a bit convoluted (hardcoding every item whaaaat). Whatever. It works.
Ahh, look at that! Working quite nicely. Everything can be placed wherever you want. I am using Victor's notorious pixel movement script, but didn't like the ridiculous lack of control on hit-boxes, so I installed Vlue's event fine-tuning which let me offset the graphics of my events.
So this is all working very nicely.
Except for this... this event has a big offset, and is set to be <event size: 32, 64>. It is set to same level as player, which works great in all cases except this one, where it is appearing above the player. If I can have it so it appears below the player when the player is in front of the bed, but above the player when behind, that would be peaches.
I'm working on an event-driven home-builder. I have it working very nicely, though it is admittedly a bit convoluted (hardcoding every item whaaaat). Whatever. It works.
Ahh, look at that! Working quite nicely. Everything can be placed wherever you want. I am using Victor's notorious pixel movement script, but didn't like the ridiculous lack of control on hit-boxes, so I installed Vlue's event fine-tuning which let me offset the graphics of my events.
So this is all working very nicely.
Except for this... this event has a big offset, and is set to be <event size: 32, 64>. It is set to same level as player, which works great in all cases except this one, where it is appearing above the player. If I can have it so it appears below the player when the player is in front of the bed, but above the player when behind, that would be peaches.
I'm moving this to script support, as I suspect it has to do with the event fine tuning script or the pixel movement script.
Using only RTP, no additional scripts, events do not behave the way your third screenshot shows. The player would appear in front of the bed.
I suspect something needs to be tweaked with one or both of your scripts.
Using only RTP, no additional scripts, events do not behave the way your third screenshot shows. The player would appear in front of the bed.
I suspect something needs to be tweaked with one or both of your scripts.
You don't really need Vlue's script along with victors. Because of Victors script, you can teleport events to specific pixels on the map, in divisions of 8 per tile. That is, you can teleport that bed exactly where you want to using the script call as opposed to the regular event command.
Here is the syntax:
$game_map.events[7].moveto(14, 16.125)
This will move the event with the ID of 7 to tile 14, 16.125. It will be 4 pixels north of 14, 16.
I haven't tried lower denominations.
edit: yeah, you can even teleport by pixel.
To do that just go by denominations of 0.03125 (thats 1 divided by 32, for the tiles are 32x32 pixels).
Here is the syntax:
$game_map.events[7].moveto(14, 16.125)
This will move the event with the ID of 7 to tile 14, 16.125. It will be 4 pixels north of 14, 16.
I haven't tried lower denominations.
edit: yeah, you can even teleport by pixel.
To do that just go by denominations of 0.03125 (thats 1 divided by 32, for the tiles are 32x32 pixels).
Wow... that's actually quite amazing. I wish Victor was better at documenting that kind of thing (maybe some day I'll get around to understanding his jump and moving platform scripts).
Thanks much!
Thanks much!
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.
Original thread: https://forums.rpgmakerweb.com/threads/event-below-player-but-not-passable.19004/