V4 New Action - Relative Position

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
Posts: 10978
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK

Fri Sep 14, 2012 7:12 pm

Been asked a few times now about this so thought I would post it with a project file.
This is still work in progress as still a bug in the Flash output but fully working with HTML5.

How this works is you can make an element in the skin move by a set amount of px to a set distance with just one button.

The attached example:
The right button moves a strip of coloured rectangles 100px to the left in the X axis with each sequential click, it will stop after moving 400px.
The button has the action:

Code: Select all

Mouse Click => Change Relative Position => Offset X/Y (/Limit X/Y): -100/0/-400/0 => Target: image_strip
The data is -100 so moves the strip to the left, 100 would move it to the right. As it is only going side to side there is only data in the X axis.

For the button that returns the strip:

Code: Select all

Mouse Click => Change Relative Position => Offset X/Y (/Limit X/Y): 100/0/0/0 => Target: image_strip
What this is doing is with each click it moves the strip 100px to the right until it reaches 0, its starting position.

Of course you can use both X and Y axis when doing this.
The bug with the flash output means only the Set Relative Position works while both Set and Change work in the HTML5 output. Hope to have this fixed next release.

This is good for making slide shows or even moving text boxes with a single button, no more stacking buttons 8)
Relative Position.zip
(268.82 KiB) Downloaded 290 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
Post Reply