Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Revonx on Sun 21/09/2008 08:55:02

Title: How to animate cursor only on specific hotspots
Post by: Revonx on Sun 21/09/2008 08:55:02
Its basically an animating exit sign, I can get it to animate on all hotspots but I want it to only animate on specific ones i.e a hotspot which will exit the character into another room, thankyou in advance.
Title: Re: How to animate cursor only on specific hotspots
Post by: Akatosh on Sun 21/09/2008 10:47:26
I don't think AGS has a built-in function that does this, but you could script a workaround with the help of the mouse.ChangeModeView function.
Title: Re: How to animate cursor only on specific hotspots
Post by: Revonx on Sun 21/09/2008 11:07:15
Sounds tricky, I'll give it a go, thanks.
Title: Re: How to animate cursor only on specific hotspots
Post by: Dualnames on Sun 21/09/2008 20:46:40

Ok, there;s actually possibility of doing it.
Via this:


bool exithotspot=false;
//if mouse is over exit hotspots//
//You can do this as well putting it on the exit hotspot interaction if mouse is over hotspot

exithotspot=true;

function repeatedly_execute() {
if (exithospot==true) {
Mouse.ChangeModeView(mouse.Mode, int view);
}
else {
mouse.ChangeModeView(mouse.Mode,-1);//that will stop animatiom
}
}

I hope you get the point
Title: Re: How to animate cursor only on specific hotspots
Post by: Revonx on Tue 23/09/2008 10:17:58
Thanks, but  I couldn't get this to work
Title: Re: How to animate cursor only on specific hotspots
Post by: Khris on Tue 23/09/2008 11:39:44
I'm not surprised.

Check this thread for exit cursors & custom cursors for hotspots/objects/characters:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=27407.0

Here's a solution to do exit & default cursors (object/hotspot->Interact, character->Talkto)
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=29123.msg370994#msg370994
Title: Re: How to animate cursor only on specific hotspots
Post by: Revonx on Tue 23/09/2008 15:18:33
Quote from: KhrisMUC on Tue 23/09/2008 11:39:44
I'm not surprised.

Check this thread for exit cursors & custom cursors for hotspots/objects/characters:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=27407.0

Here's a solution to do exit & default cursors (object/hotspot->Interact, character->Talkto)
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=29123.msg370994#msg370994

Thanks Khris, I checked the threads, but that type of global scripting is a little too complicated for me, I'll keep trying though, thanks.