Page 1 of 1

KeyGuard Image Cursor - (howto video)

PostPosted: Sat Jul 19, 2014 4:08 pm
by reneuend
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.

Re: KeyGuard Image Cursor - (howto video)

PostPosted: Sat Jul 19, 2014 5:59 pm
by Vengeance66
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!

Re: KeyGuard Image Cursor - (howto video)

PostPosted: Sat Jul 19, 2014 7:19 pm
by skype6
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

Re: KeyGuard Image Cursor - (howto video)

PostPosted: Sat Jul 19, 2014 7:26 pm
by reneuend
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:

Re: KeyGuard Image Cursor - (howto video)

PostPosted: Sat Jul 19, 2014 11:08 pm
by Vengeance66
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...

Re: KeyGuard Image Cursor - (howto video)

PostPosted: Sun Jul 20, 2014 9:53 am
by skype6
This opens up some new possibilities :D

Re: KeyGuard Image Cursor - (howto video)

PostPosted: Sun Jul 20, 2014 9:54 am
by skype6
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?

Re: KeyGuard Image Cursor - (howto video)

PostPosted: Sun Jul 20, 2014 6:53 pm
by reneuend
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.

Re: KeyGuard Image Cursor - (howto video)

PostPosted: Mon Jul 21, 2014 8:46 pm
by skype6
After several attempts, I succeeded :D It works! So now is a little clearer, what keyguard actually doing. Truly remarkable plugin