Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: NiksterG on Wed 16/08/2006 22:04:07

Title: anti glide for one character?
Post by: NiksterG on Wed 16/08/2006 22:04:07
Just a quick question... Is it possible to set antiglide on/off for just one character instead of for the whole game? I know you can change the game options, but I'm talking about for one specific character.
Title: Re: anti glide for one character?
Post by: Ishmael on Wed 16/08/2006 22:13:20
I haven't come across a way to do that. I've come across situations where I'd have needed such a featute, too. Wink wink.
Title: Re: anti glide for one character?
Post by: strazer on Thu 17/08/2006 00:09:53
Already on the tracker: http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=204
Title: Re: anti glide for one character?
Post by: Khris on Thu 17/08/2006 01:31:22
As a workaround, you could write a simple function and call that instead of the Walk method.

function cChar_Walk(int x, int y) {
  SetGameOption(OPT_ANTIGLIDE, 0);
  cChar.Walk(x, y, eBlock);
  SetGameOption(OPT_ANTIGLIDE, 1);
}
This would only work if it doesn't have to be called non-blocked, of course.
Title: Re: anti glide for one character?
Post by: NiksterG on Thu 17/08/2006 02:26:02
I can try the workaround and see how that affects my game. Otherwise, I'll just wait for an updated version of AGSÃ,  ;) Thanks for your help!
Title: Re: anti glide for one character?
Post by: SSH on Thu 17/08/2006 09:21:22
Also, objects can be used as they don't anti-glide. I wouldn't wait for a new AGS version as history tells us it will be at least 6 months before a new one and even then it might not have the feature you want.