Dynamic Character Blinking (h2)

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 14:19, 5 August 2016 by AFRLme (talk)
Name By

Dynamic Character Blinking (animation, Lua) AFRLme


This tutorial shows you how to create dynamic blinking for your characters using some if queries & a little bit of Lua script to force which animation frames should show. This tutorial only delves into the basics of adding a blinking animation to your characters idle animations, however you could quite easily use the same method to insert blink animations anywhere you like in any of your characters animations by querying which frames should be played or skipped.


Tutorial

1. First things first: you should create some images/animations via your graphic/3D editing program of choice.

Hotspot 001.png

2. Next thing you want to do is create a button inside of one of your interfaces & set the button type to action area.

Hotspot 002.png

3. Create your hotspot animations inside of this button & adjust properties settings for each animation to suit.

Hotspot 003.png Hotspot 004.png

4. Next you need to assign your hotspot animations to each of your scene objects & position them on the screen via the effects tab.

Hotspot 005.png

5. Now you need to go to game tab > key actions to sort out the key inputs that will toggle the hotspots animations on/off.
6. Create a space key action & inside of this create a scene > fade "snoop" animations in action part.

Hotspot 006.png

7. Create a space (released) key action & inside of this create a scene > fade "snoop" animations out action part.

Hotspot 007.png

8. Now rinse & repeat the process for all the other scene objects that you want to show hotspot animations for.

Jacob blink gif.gif


Resources

Name Description
hotspot_demo.zip A working .ved file, complete with resources. Check out the readme.txt file for instructions.