anti glide for one character?

Started by NiksterG, Wed 16/08/2006 22:04:07

Previous topic - Next topic

NiksterG

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.
Check out my games! (Not all made with AGS)

Ishmael

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.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.


Khris

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.

NiksterG

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!
Check out my games! (Not all made with AGS)

SSH

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.
12

SMF spam blocked by CleanTalk