How to show layer when motion path takes image over another image. Help please.

Oct 06, 2016

Hi all, I'm trying to create an interaction in storyline 2 where you have to get a picture of a minion home without going over a picture of a swamp. I've used relative motion paths linked to up, down, left & right arrows to move him around the screen and have created a layer to use if he goes over the swamp. My problem is that I don't seem to be able to trigger the layer. I tried 'show layer' when object dragged over but it doesn't seem to work. Any ideas gratefully received.

10 Replies
Michael Hinze

The When object dragged over only functions for a drag object. In your case, it sounds like you don't have users drag the object but move it by pressing keyboard keys. I would set up two variables x and y. X is increased or decreased when you press the left or right keys. Y is increased or decreased when you press the up or down keys. With these two variables you can determine where on the screen you are, including whether or not you are within the swamp area. Then you could trigger the layer based on the values of these two variables.

This discussion is closed. You can start a new discussion or contact Articulate Support.