Moving Headline Object - Forum

Forum Navigation
You need to log in to create posts and topics.

Moving Headline Object

I have another simple question for you.

I have a Headline object with a border.

As action, there is a button which brings down the Headline (with the border and its text) and the other makes it go up.

I don't think I understand yet how to use variables to modify the properties of an object.

I am sending you a starting file. Or if you prefer to take yours.

Can you help me?

Roger :)

Uploaded files:
  • You need to login to have access to uploads.

@rocote

You can use MoveObject e.g. ...

MoveObject "Headline1" 50 100

... or SetObjectBounds ...

SetObjectBounds "Headline1" 20 300 0 0

... just leave blank those parameters you do not need to be changed

Once you verify that these work as expected, you can replace parameters with [variables] e.g. ...

SetVar [newLeft] 80
SetVar [newTop] 200
SetObjectBounds "Headline1" [newLeft] [newTop] 0 0

Note: You can use negative numbers for top or left to move all/part of the object off screen.

luishp and Samuel Vanneste have reacted to this post.
luishpSamuel Vanneste