Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Zeuz on Fri 18/07/2003 20:43:17

Title: scaled walking speeds when anti-glide mode off.
Post by: Zeuz on Fri 18/07/2003 20:43:17
scaling speed now works well with anti-glide off, but:
when a character enters a new room his coordinates are totally wrong!
i think it only makes
NewRoom();
but not
NewRoomEx();

thank you
Title: Re: scaled walking speeds when anti-glide mode off.
Post by: Pumaman on Fri 18/07/2003 23:02:46
You'll have to be more specific - when are the co-ordinates wrong? under what circumstances?
Title: Re: scaled walking speeds when anti-glide mode off.
Post by: Zeuz on Sat 19/07/2003 17:43:49
when my char enters a room with
NewRoomEx();
the room changes, but the coordinates of my char dont change!
i think the coordinates are the same as in the old room

(sorry for my bad english) :-[
Title: Re: scaled walking speeds when anti-glide mode off.
Post by: ThunderStorm on Sat 19/07/2003 18:13:27
Are you completely sure you used NewRoomEx and not NewRoom? NewRoom doesn't set any coordinates, thus the old ones are used. That's not important for rooms in which the player character is not visible, but in most cases it's sensible to use NewRoomEx.

Could you post the script line?
Title: Re: scaled walking speeds when anti-glide mode off.
Post by: Zeuz on Sun 20/07/2003 00:01:47
there is no bug in my script!
when i havent checked the speed scaling checkbox
everything works perfectly(and my chars coordinates change when i use NewRoomEx();(and i am completely sure))
when the  checkbox is checked the same command(NewRoomEx) makes only a room change (like NewRoom())
so it might be that the fault is in ags
Title: Re: scaled walking speeds when anti-glide mode off.
Post by: Pumaman on Sun 20/07/2003 18:10:37
Ah I see, it only happens if the character is moving and is scaled down when NewRoomEx is called. Yes, it's a bug - thanks for spotting it, I'll get it fixed.
Title: Re: scaled walking speeds when anti-glide mode off.
Post by: Zeuz on Tue 22/07/2003 14:04:48
Thank you!!
;D