Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Simple question

wlzza

Sponsor

Hi there!

Well just a simple question really, I'm using VX. It starts of like this: I want a picture to appear if the passbility for event[13] is not passable. If event happens to be on x variable[3]  and y variable[4] and tile is not passable a picture is suppose to appear, but nothing happens when the event is on those co-ordinates.

$game_map.events[13].passable?($game_variables[3], $game_variables[4])

If i change ($game_variables[3], $game_variables[4]) to (2, 8) then the picture shows up. I have checked to see if $game_variables[3] is 2 and  $game_variables[4] is 8, but still nothing shows.

Help. Thanks.

BTW I've noticed below my nick its states "member" when its supposed to state "sponsor"
 

khmp

Sponsor

How are you setting those $game_variables are you assigning them everytime before that check? Create a parallel process event with the following code in a 'Script...' event command.

Code:
if $test1 != $game_variables[3] || 
  $test2 != $game_variables[4]
  $test1, $test2 = 
  $game_variables[3], $game_variables[4]
  p '$game_variables[3] = ' + $test1.to_s +
    ', $game_variables[4] = ' + $test2.to_s
end

If it only prints once where it is called from then the variables are not changing. Or the event is not parallel process.

Contact an admin (Teloch "Mr. Fuji", Despain "MISSINGNO.", shadow, sixtyandaquarter) with the sponsor thing.

Good luck with it wlzza! :thumb:
 

wlzza

Sponsor

Yes i'm assigning them before the check.

Well i tried script event command you have mentioned, the variables are changing, but still nothing.

---------------------------

Nevermind i got it to work now. Thanks
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top