Thanks for your response! (and sorry I wasn't able to reply earlier) I've updated and simplified my code and I've tried to implement your suggestions (I hope I understood you correctly, I'm new to pulp, relatively speaking) I don't know if I'm just saving things incorrectly, but my updated code still doesn't work :
My game code:
on start do restore if roomLoc == 0 then goto 0,9 in "card" say "{roomLoc}, {PlayerX}, {PlayerY}" else goto PlayerX,PlayerY in roomLoc end end
on loop do
config.follow = 1
config.followOverflowTile = "wall"
end
...and my player code:
on update do if event.dx>0 then swap "MouseMan1" call event.room elseif event.dx<0 then swap "MouseMan0" end end
on loop do
roomLoc = event.room
PlayerX = event.px
PlayerY = event.py
store "PlayerY"
store "PlayerX"
store "roomLoc"
end
Thanks!