FLAPBAT'S PROFILE
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
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
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?
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!
Thank you!
[RMMV] Checking for passability when encountering impassable events
[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:
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!
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
[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" :
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 :)
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 :)