Transition on a HOTSPOT [Alternative]

This forum is meant for people to share their knowledge by writing their own tutorials for Adventure Maker.

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

Transition on a HOTSPOT [Alternative]

Postby mercedes » Wed May 25, 2011 11:22 pm

I can't beleive I never thought to try this before>>??

I hope someone tries this ..if they haven't already..
Wasn't sure where to post this..

--------------
Ok, I use a certain piece of code often through out a project..I did in my last one as well--which is why i can't beleive I didn't try it before.

Normally you would use this code if you wanted to go back X amount of frames.
However, I prefer it for hotspots and I like to use it thru out my whole project.
It also really limits the amount of frames you use in a project-


For instance;
If you have a lock on a door...And you want a close up of the lock--
Or wish to interact with that lock in close up.....Instead of going to another frame to examine the lock..etc
Similar to a HOG game.

----- Ok so this is just an example-Looking at a Lock in close up------

Using a 800*600 Frame-or larger
Create Variant called framevar

Create 2 HS on the frame-- Make one of them small -HS(2)]

In the HS(1); Door with lock
Use a magnifying cursor & in the Advanced add this;
Framevar = Action.GetCurrentFrameName
Action.Load picture HS(2)
Move/resize HS(2)640*480--Pic must be made this big-But you make the HS small and transparent

In HS(2) Add this to the Advanced;
Action.GoToFrame framevar, 0.5, 1
Add a GoBack cursor

When you click the magnifying glass hs in runtime....and it loads the closeup of lock
...When you click the close up to goback...It transitions back to the frame!

You're not actually leaving the frame, youre loading the same frame..but the transition still takes place..Only it appears as though its on the HS..itself..
The rest of the frame looks static..
It works best with Alphablending.

It's neat!....Pretty happy when I saw that..Something I have been wanting to do for a very long time.:D

**Normally you would disable HS(2) in the Frame's properties..
So if the user passes over it..They don't see the cursor and or actions take place..
You would enable HS(2) again in HS(1)~**
Last edited by mercedes on Mon May 30, 2011 4:55 am, edited 3 times in total.
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby reneuend » Thu May 26, 2011 2:45 am

Hey, that's a great idea! :-)
I can think of adaptions with this that might be cool. yet another thing that I'll have to try some time.
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2690
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby Candle » Thu May 26, 2011 6:55 am

Thanks mercedes, I moved it to here.
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3054
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar


Return to Post Your Own Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

cron