Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124
Game dev studio

Classes

developer »

gameProject »

pedestrianController »

playerPlatform »

punishment »

team »

Concepts

Libraries

Objects

getTraveledDistance

Description

Returns the total traveled distance on each axis since grabbing the screen with the mouse and moving away.

Returns

1 number

travelX-the total traveled distance on the X axis.

2 number

travelY-the total traveled distance on the Y axis.

Example

local travelX, travelY = camera:getTraveledDistance()