Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: HandsFree on Wed 30/06/2021 21:31:50

Title: put player at x = -50
Post by: HandsFree on Wed 30/06/2021 21:31:50
I used to let the player character walk in the screen by doing for instance player.ChangeRoom(3,-50,150). And then in room 3 walk to some place on the screen.
Now I'm working with AGS 3.5.1. and the tumbleweed template and this doesn't work.
The player is placed visibly in room 3 at x=1.

I noticed that if I do player.Walk(-50, 150, eBlock, eAnywhere), the player does walk off screen.
Why is this not happening with the changeroom (or tumbleweed's EnterRoom), and what can I do to fix this?

thanks
Title: Re: put player at x = -50
Post by: Crimson Wizard on Wed 30/06/2021 21:38:32
Are you sure you are not calling PlaceOnWalkableArea anywhere in script?
Title: Re: put player at x = -50
Post by: HandsFree on Wed 30/06/2021 21:56:10
Err, it was in on_event. I didn't put it there, so maybe it comes with tumbleweed?
I disabled that line and now it works,

thanks