How to animate cursor only on specific hotspots

Started by Revonx, Sun 21/09/2008 08:55:02

Previous topic - Next topic

Revonx

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.

Akatosh

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.


Dualnames


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
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)


Khris

#5
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

Revonx

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.

SMF spam blocked by CleanTalk