July 12, 2019
Super Simple Multi-State Magic with 3 simple objects and 3 awesome actions
Comments
(32)
July 12, 2019
Super Simple Multi-State Magic with 3 simple objects and 3 awesome actions
Group Technology Evangelist
Staff 44 posts
Followers: 212 people
(32)

In this post I’ll explain how you can make wonderful, rich interactions in Adobe Captivate with simple multi-state objects.  This is an easy exercise, simple enough for beginners and a great introduction to advanced actions. I’ll break the tutorial up into three basic parts, and along the way you’ll learn about three simple actions that when used together, create all of the changes and interactivity you find in the finished project.

To begin, check out the published version of this interaction.

http://p0qp0q.com/multiStateColorWheel/

In the interaction you’ll note that there are three basic areas I will explain. On the left, there is a simple – multi-state object – which appears to the learner as an image of a cartoon illustrated man wearing a black suit and a blue tie.  The illustrated character is one of many found in Captivate’s ‘Asset’ panel. You can use the illustrations in your own copy of Captivate if you want to build the interaction yourself.

This multi-state character features each of the custom positions used to respond to correct and incorrect button clicks.

 

Now if this is your first use of a multi-state object, don’t worry. The concept is pretty simple. Most objects in your Adobe Captivate projects can be turned into multi-state objects.  Buttons create their own multi-states in order to help with rollover effects and down states, but in this case I just added multiple states to an image (character) in order to make the process of changing the character’s ‘reaction’ to the answer selections simple.

To add more states to an image, just select the image on the stage, and then click the big blue plus symbol in the property inspector, under the Object States section. You will be prompted to add a name for your new object state – in this example, I named the new object state ‘SAD’  – but you can name it anything you like.

 

It’s okay to think of object states – kind of like layers. You can imagine that the image has a stack of  images behind it, and that you can pick or choose which image you want to show in any order or at any time. In fact there is a special ‘Advanced Action’ just for telling your project which state (layer) to show at any given time. That’s called the ‘ChangeState’ action. It’s super easy to use – you just pick ‘Change State Of’ from the drop down list of available actions, and then Captivate will suggest two things in drop down menus that appear beneath your new action. The first will be ‘which multi-state object’ that you want to change the state (or layer) for, and the second will be which of those layers do you want to change to.  It’s kind of obvious when you start to break it down. Here’s an image of that.

 

So all we have to do to change the expression on the character’s face, is to create a new state, name it, and replace the old image in that state with a new image – the one with the correct expression.  I just deleted the old image, and pasted in the new one.  It is however important to make sure that you have the right state (layer) selected while you edit the state. You can do that by selecting the state view button from the property inspector.  Captivate will go all grey and you’ll see the slide thumbnails change into ‘state’ thumbnails.  This is a special view, and you’ll have to use the special exit button on the top button bar. Don’t forget – click the big red X to exit the state view – or you’ll find yourself thinking that you can’t edit your project. Remember, I told you, big red X to exit the state view.

 

Now while in the state view, the thumbnails will allow you to select any of the states. This is the perfect editing space to set up all of your character expressions. Just delete and replace the original image, with the ones you want to use for each expression. You can add new states from this view as well.

 

Okay, so we’ve created a character with a bunch of layers, and we named each layer according to our description of his facial reaction. But in this sample interaction, the little guy changes his face AND the text changes, every time we click one of the buttons. So we can think of this project as having three areas that change appearance whenever a button is clicked.

  1. The little suit guy changes his facial reaction
  2. The text below the question (feedback text) changes for each selected button (answer).
  3. Each button actually changes too – when a button is selected, the button changes its appearance as well.

We saw in the first part of this tutorial, how to change the states of the little suit guy. (Or at least how to give him multiple states to change into.) Now let’s do the same thing for that text at the bottom.  That’s right, you probably guessed it already. The text is a multi-state object too. We create it the same way, just select the text, and then either click the blue add state button in the property inspector, or just push the state view button, and start adding states using the button above the thumbnails.

Multistate text is even easier to modify – as you simply type into the text area, while the correct state is selected. So just select the text area, click state view, and then create four more states, to match the states we added for the suit dude. Then select each text state using the state thumbnails, and type you ideal feedback string into the text area. That’s it – and you can think of this the same way as you did the image.  It’s like layers of text, and you can use the same action to change which layer is visible – Change State Of. The logic is the same, so it will be easy to work with.  Just don’t forget to use that big red x, exit multi-state button to get out of the multi-state view when you finish. (You forgot didn’t you. I know, I do it myself.)

Now for phase 3, the exciting part. Finally, we will want to create the buttons, and give them both multiple states, and to give them interactions that can control everything in the project. The buttons in this project are just shapes. I drew a single rounded rectangle and typed a color into its text area.  Then I checked the box to ‘Use as button.’ which instantly converts the shape into an interactive button, AND adds special states (layers) that are used for rollover effects and the button press state. You can edit these shapes – just as you did with the other states of image and text objects – by going to the state view and altering the color and font properties of the shape for each state. Finally, I added a state – a special built in state, called ‘Visited.’  This state is displayed when the button has been used by the current learner.

Button states are a little different than regular states. They automatically include things like rollover and down states, and there are some rules that are related to the clickable area of a button that restrict how much you can change / manipulate for a button.

Finally, we will need to add actions to these new buttons. Most of the actions are simply changing the active state of an object on the screen. There is also an action that is used to delay a state change – that’s how I’m able to make a button change its appearance, wait a couple of seconds, then change back to another state. This delay action is called ‘delay’ – yup, it’s really that simple.  We just ask Captivate to delay and then tell it how long (in seconds) that we want it to pause.

The only other action that we will use is to ‘GoToNextSlide’ which will ask Captivate to go on to the next slide after we get the right answer. Here’s an example of what that advanced action script looks like.

The first two actions just change the state(layer) of the suit guy, and of the text to the layer that is appropriate for response. Then we Pause for two seconds (Delay 2 seconds) and finally we change all of the states of everything back to default (normal) states. This acts like kind of a global reset. The button state doesn’t need to be changed initially because the rollover, down click, and visited states are all automatic.

The same action is used for all incorrect answers – with changes only to the top two lines – where we are triggering different layers for the image and the text. The correct answer action is even simpler. It uses exactly the same logic, but after the delay, we issue a command to ‘GoToNextSlide’ which takes the learner to the next slide.

I’ve included a sample version of the source code for this project here – so that you can download and play with the project yourself.  As always, I hope you’ll add your own thoughts and ideas in the comment section below and don’t hesitate to ask any questions about the approach or about multi-state objects in general.

 

32 Comments
2022-03-15 12:31:37
2022-03-15 12:31:37

Brilliant – very helpful for a beginner, thanks!

Like
2021-06-08 13:42:16
2021-06-08 13:42:16

Cool. Thanks for the post.

Like
(2)
2021-05-03 20:18:07
2021-05-03 20:18:07

Really helpful, thanks!

Like
(2)
2021-04-28 10:22:58
2021-04-28 10:22:58

Very usefull and simple. Thanks

Like
(3)
2021-04-27 16:08:10
2021-04-27 16:08:10

Nice

Like
(3)
2021-03-14 14:29:25
2021-03-14 14:29:25

Thank you, simple and direct to the point.

Like
(3)
2021-03-11 15:48:04
2021-03-11 15:48:04

As a beginner this is really good

Like
(3)
2021-03-11 15:47:38
2021-03-11 15:47:38

good information for begginers!

Like
(3)
2020-12-17 05:53:24
2020-12-17 05:53:24

Nice example. I have played around with different states – I might try this one out too. Thanks.

Like
(7)
2020-12-11 20:29:24
2020-12-11 20:29:24

Thanks for sharing such a detailed tutorial.

Like
(6)
(1)
>
cferran1
's comment
2020-12-21 13:22:32
2020-12-21 13:22:32
>
cferran1
's comment

Thanks a lot. This helped me!

Like
(1)
2020-11-30 10:24:50
2020-11-30 10:24:50

There’s a lot of power in this example.

Thank you for sharing!

Like
(8)
2020-11-25 00:07:39
2020-11-25 00:07:39

Thank you!

Like
(7)
2020-11-25 00:03:42
2020-11-25 00:03:42

Lieve, so helpful!

Like
(7)
2020-11-13 03:54:52
2020-11-13 03:54:52

Thank you, this is so helpful!

Like
(9)
2020-10-20 04:02:02
2020-10-20 04:02:02

Thank you for sharing.

Like
(8)
2020-10-09 07:34:43
2020-10-09 07:34:43

Thanks for sharing~

Like
(9)
2020-07-29 08:13:27
2020-07-29 08:13:27

I love the way you write this article. Thank you very much

Like
(1)
2020-05-25 21:47:27
2020-05-25 21:47:27

Thanks for sharing.

Like
(1)
2020-05-12 09:05:36
2020-05-12 09:05:36

that was cool

Like
(1)
2020-01-11 21:08:40
2020-01-11 21:08:40

Thank you for posting this!

Like
(1)
2019-12-19 02:31:28
2019-12-19 02:31:28

A really cool example.  Thank you for sharing.

Like
(1)
2019-11-04 20:26:49
2019-11-04 20:26:49

What should we do if we don’t have access to this high quality of (hopefully) free assets?

Like
(1)
(1)
>
JerryJJ
's comment
2019-11-04 20:45:18
2019-11-04 20:45:18
>
JerryJJ
's comment

Can you give some more explanation. The assets used in this example are available even in older versions. Multistate objects exist also since several versions. Which old version are you uising?

Like
(6)
2019-10-13 09:00:11
2019-10-13 09:00:11

Oh, I didn’t notice that you provided a link with an interaction. Only discovered it after revisiting. Great !

Like
(1)
2019-09-30 11:51:00
2019-09-30 11:51:00

Good Job. Thanks for sharing.

Like
(1)
2019-08-11 18:05:16
2019-08-11 18:05:16

Thanks for sharing!

Like
(1)
2019-07-27 11:11:11
2019-07-27 11:11:11

Thanks for the upload!! It helped a bunch! I’m totally new to Captivate and this was my first introduction to advanced actions. It did take me a good hour to figure out why my version of your project didn’t work. I had only set my buttons to default (=normal, roll over and down). And for some reason the buttons don’t show up in “change state of” if you don’t add your own state to a button. But I eventually figured it out 😉

Like
(1)
2019-07-26 20:21:44
2019-07-26 20:21:44

Hi! I’m new to Captivate, and as practice I’m trying to create your project from a blank project without copying any of your elements directly. I have run into a problem. In the advanced action tab, non of my smartshapes show up. I.e. I can only select the cartoon guy or my text caption when selecting “Change State” in the advanced action pop-up. Am I missing a check mark somewhere?

Attachment

Like
(1)
(1)
>
Sif Hearing
's comment
2019-09-04 19:56:46
2019-09-04 19:56:46
>
Sif Hearing
's comment

If an object is not appearing in the dropdown list for the Change State command, it means that it has only the Normal state and maybe InBuilt states (you cannot change to the Rollover nor the Down state). Do you have multiple states for the shapes?

Like
(5)
2019-07-19 03:56:19
2019-07-19 03:56:19

Great example and thanks for the assets!

Like
(1)
2019-07-13 08:13:55
2019-07-13 08:13:55

For users: advantage of this ‘Character’ is that it has the full set of thumbnails installed with Captivate, will show up in the Assets. Contrary to  older versions of Captivate, the full image will only be downloaded to the Content part of eLearning assets when you insert it in a project.

If you want to use a character which is not in the installed set (Illustrated , have a look at my post with tips for the Assets Panel:

https://elearning.adobe.com/2019/06/assets-panel-tips/

Like
(2)
Add Comment