view_hspeed

Maximal horizontal speed of the view.

Syntax:

view_hspeed[0...7]


Returns: Real


Description

This variable controls the horizontal movement speed of the view when it has an instance to follow (this can be set with the view_object variable or in the room editor). Care should be taken when setting this value, as setting it too low can result in the instance moving faster than the view can and so it may disappear out one side of the view until it stops and the view catches it again.


Example:

view_hspeed[0] = view_object[0].hspeed;
view_vspeed[0] = view_object[0].vspeed;

The above code sets the speed of the view following to be the same as the currently selected follow object.


Back: Views
Next: view_vspeed
© Copyright YoYo Games Ltd. 2018 All Rights Reserved