Hi there, just needs some pointers. What I want to achieve is to show a picture on the screen whenever the leftside of the player is non-passable and then disappears when that area becomes passable.
what I've gathered so far is...
Hope you can advise me. Cheers!
what I've gathered so far is...
Code:
To set correct variables...
case $game_player.direction
when 2
@e1x = $game_player.x + 1
@e1y = $game_player.y
when 4
@e1x = $game_player.x
@e1y = $game_player.y + 1
when 6
@e1x = $game_player.x
@e1y = $game_player.y - 1
when 8
@e1x = $game_player.x + 1
@e1y = $game_player.y
end
Then to check passability (not to sure)...
If $game_map.passable?(@e1x, @e1y) == true
Show picture
else
Erase picture
end
I assume to show a picture is...
@image.bitmap = Cache.picture("w1-E-L_R")
@image.x = 0
@image.y = 0
@image.z = 99
While to erase a picture is...
@image.dispose
Hope you can advise me. Cheers!