Is this possible to do?

This forum is meant for posting anything related to Adventure Maker that doesn't fit in the other forums.Please post technical questions in the Technical Support Forum!

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Is this possible to do?

Postby Simsan » Tue Jan 24, 2006 2:24 am

Lets say you have to take a banana from a monkey. But you can only take the banana from him when he looks the other direction, and he looks the other direction for 2 seconds every 4th second

Would this be possible to do?
User avatar
Simsan
Junior Member
 
Posts: 8
Joined: Mon Jan 23, 2006 2:46 am
Location: Sweden

Postby ShadowHunter » Tue Jan 24, 2006 11:50 am

Hi,

Yes, that is very easy to do... this example uses some scripting:

Just create a timed event (interval 4 seconds), on each trigger load a new image into a tagged hotspot (so the monkey looks in certain directions) and also change the tag of the hotspot on each trigger (so that you know what direction the monkey is looking) Now change the interval of the timed event to 2 seconds and make an "if", "then" procedure to know when to make the banana hotspot accessible (in this case when the monkey isn't looking)... On the next trigger change the interval back to 4 seconds.

I'm pretty sure it can also be done without scripting but I always use code which is more logical and flexible :wink:

Hope this helps !

Kind regards,

ShAdOwHuNtEr
User avatar
ShadowHunter
Forum Admin and Games Page admin
 
Posts: 1304
Joined: Fri Jun 06, 2003 10:37 pm
Location: Belgium


Return to Adventure Maker General Discussion

Who is online

Users browsing this forum: No registered users and 21 guests