FLAPBAT'S PROFILE

Farmyard Chronicle, Dire...
A fun-loving cow-kicking puzzle game!

Search

Filter

[RMMV] script call: player screen position

Issue somewhat solved. I didn't figure out how to get player.screen_pos.x, but using $gamePlayer._realX accomplished what I needed.

I would still be interested in learning the screen_pos.x script if anyone knows it

[RMMV] script call: player screen position

In "control variables" there is an option to set a variable equal to the player's x_scene as opposed to the player's x_coordinate. Does anyone know how to reference this x_scene via a script call? I've tried variations on $gamePlayer.x_scene but nothing works so far.

[RMMV] walking animation script call

Does anyone know the script call for toggling the player's walking animation?

Script Call for Variable Jumps

Thanks for the suggestions, Marrend.

I'll fiddle around with those and see if I have any luck. If anyone else knows, please share!

*Edit: You're the best, Marrend. "$gamePlayer.jump(x,y)" works! Who would have thought?

Script Call for Variable Jumps

Does anyone know the RMMV script call for jumping using variables for distance and height? If so, can you provide a detailed example? This is the way I have been doing it, and it is needlessly complex:



Thank you!

[RMMV] Checking for passability when encountering impassable events

geri_khan, you are always pulling through with answers to my random questions. Thanks a ton!

[RMMV] Checking for passability when encountering impassable events

Hello,

I'm not sure how to check for when an object is blocking the player's movement route (via an autostart movement call). The code I've been using only checks for map passability:

 $gameMap.isPassable($gamePlayer.x+1, $gamePlayer.y, $gamePlayer.directionRight)

I know there is a way to check for event passability instead of just map passability, but I haven't been able to figure it out. Any help is appreciated!

[RMVX] Scripting Trouble: event checking its own passability

Got it. Thank you both. This fix helps me understand the script calls better overall :)

[RMVX] Scripting Trouble: event checking its own passability

Thanks Marrend. My bad- I thought I clicked RMMV, not VX.

I'm going to try and use your fix but replace it with MV terms.

*edit*
Sadly, this isn't working either. I've tried simplifying my code, but I'm getting an error stating "unexpected identifier" :

event = $gameMap.events[10]
if event == 10 {
$gameMessage.add ("check")}

[RMVX] Scripting Trouble: event checking its own passability

I'm trying to modify this code from the RMMV Script Calls page: "$gameMap.isPassable(x,y,direction)"

The modification that I'm trying to make is to have a parallel process NPC check its "up" directional passability before it moves. I'm using the code in a conditional branch. It looks like this, but doesn't work.

$gameMap.events(this._eventId).isPassable($gameMap.events(this._eventId).x, $gameMap.events(this._eventId).y-1, $gameMap.events(this._eventId).directionUp)

I'm getting a TypeError stating that "undefined is not a function." I know I'm probably going about it laughably wrong, but any help would be quite welcome :)