KeyGuard Image Cursor - (howto video)

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

KeyGuard Image Cursor - (howto video)

Postby reneuend » Sat Jul 19, 2014 4:08 pm

ShadowHunter's Keyguard allows you to replace the small mouse cursor with an image of any size. This really opened up the doors to some really cool effects. Like shooting a gun with gun recoil, hiding the screen except for a spot as in a torch, or match, or flashlight, a camera, etc....

It is extremely easy to do and everyone should be using this feature!

Here is the how-to video that shows you the basics: http://youtu.be/lbtAnWbdJac

Copy and save the following information so you don't have to try and type it out from the video.
Code: Select all
RotationAngle = 0
Component("KeyGuard").Object.ProhibitRotation = 1
RenderBitMapCursor "camera.jpg","camera_mask.jpg"
Component("KeyGuard").Object.ActionPointX = 100
Component("KeyGuard").Object.ActionPointY = 175
Action.ChangeDefaultCursor "blank.ico"


NOTE: If you want the same image cursor to work in other connected frames, use the following command in the Frame properties for the "other" frames:
Code: Select all
Component("Keyguard").Object.continuebitmapcursoronthisframe



coming in the future, I'll show you animated cursors, and how to create a flashlight effect, and finally a gun with recoil.
---


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

Re: KeyGuard Image Cursor - (howto video)

Postby Vengeance66 » Sat Jul 19, 2014 5:59 pm

Cool video! Now, when I saw this I said to myself: This was easy you dumb... :-)

My logic is that with this we can make custom inventory and when you click on the image of the item the cursor will become the item and you can use it somewhere (trigger event). Of course, along with a speech lines ;-)

Great!
Stay a while and listen...

Rainbow Enterainment - http://rainbowenter.com/
User avatar
Vengeance66
Administrator
 
Posts: 630
Joined: Wed Oct 13, 2010 2:17 pm
Location: Macedonia

Re: KeyGuard Image Cursor - (howto video)

Postby skype6 » Sat Jul 19, 2014 7:19 pm

Cool video! Now, when I saw this I said to myself: This was easy you dumb... :-)


That's what I just said, now look easy... Many thanks for this reneuend :D
User avatar
skype6
Frequent Poster
 
Posts: 114
Joined: Fri Jan 10, 2014 2:17 pm

Re: KeyGuard Image Cursor - (howto video)

Postby reneuend » Sat Jul 19, 2014 7:26 pm

Funny you should say that about the inventory. When ShadowHunter first came out with image cursors, that is exactly what I created. I used the mouse wheel to allow the user to change items that he was carrying.
Here is the demo ( http://amforums.cloudapp.net/phpbb/viewtopic.php?f=5&t=4920&p=24783#p24783 )..but I'm not sure it will work anymore since it was built for XP at the time. However, I will try it again in the future...perhaps for your game! :wink:
---


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

Re: KeyGuard Image Cursor - (howto video)

Postby Vengeance66 » Sat Jul 19, 2014 11:08 pm

reneuend wrote:Funny you should say that about the inventory. When ShadowHunter first came out with image cursors, that is exactly what I created. I used the mouse wheel to allow the user to change items that he was carrying.
Here is the demo ( http://amforums.cloudapp.net/phpbb/viewtopic.php?f=5&t=4920&p=24783#p24783 )..but I'm not sure it will work anymore since it was built for XP at the time. However, I will try it again in the future...perhaps for your game! :wink:


Wow! This is cool! I like the idea of cycling thru the inventory with the mouse wheel. I never thought of that idea. It will be great if the player can see his inventory items, but can scroll the mouse wheel to select. :D

What an inspiration...
Stay a while and listen...

Rainbow Enterainment - http://rainbowenter.com/
User avatar
Vengeance66
Administrator
 
Posts: 630
Joined: Wed Oct 13, 2010 2:17 pm
Location: Macedonia

Re: KeyGuard Image Cursor - (howto video)

Postby skype6 » Sun Jul 20, 2014 9:53 am

This opens up some new possibilities :D
User avatar
skype6
Frequent Poster
 
Posts: 114
Joined: Fri Jan 10, 2014 2:17 pm

Re: KeyGuard Image Cursor - (howto video)

Postby skype6 » Sun Jul 20, 2014 9:54 am

Oh, and one question! How to make interaction with the hotspot when the cursor passes over it, for example, to change the color or something?
User avatar
skype6
Frequent Poster
 
Posts: 114
Joined: Fri Jan 10, 2014 2:17 pm

Re: KeyGuard Image Cursor - (howto video)

Postby reneuend » Sun Jul 20, 2014 6:53 pm

Yep! I made a tutorial for mouse hover a couple years ago: http://amforums.cloudapp.net/phpbb/viewtopic.php?f=10&t=5214
What I show is a bit more sophisticated. I think once you see it, you will be able to adapt. If not, let me know.
---


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

Re: KeyGuard Image Cursor - (howto video)

Postby skype6 » Mon Jul 21, 2014 8:46 pm

After several attempts, I succeeded :D It works! So now is a little clearer, what keyguard actually doing. Truly remarkable plugin
User avatar
skype6
Frequent Poster
 
Posts: 114
Joined: Fri Jan 10, 2014 2:17 pm


Return to Post Your Own Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests

cron