Description

This is a set of scripts for a simple swipe system that returns direction, distance, and speed of swipes. Supports multi-touch.

The scripts included are:

  • Swipe Sys Init - Initializes the system by preparing some variables and data structures.

  • Swipe Start - Starts a new swipe and returns it's id.

  • Swipe End - Ends a swipe.,

  • Swipe Get Direction - Returns the direction of a swipe.

  • Swipe Get Distance - Returns the distance of a swipe.

  • Swipe Get Speed - Returns the speed of a swipe.

  • Swipe Sys Clear - Clears the data structures and resets the system to save memory.

  • Swipe Sys Cleanup - Removes the system by deleting the data structures and resetting variables.

Code Structures:

swipe_sys_init();
swipe_start(device);
swipe_end(id);
swipe_get_direction(id);
swipe_get_distance(id);
swipe_get_speed(id);
swipe_sys_clear();
swipe_sys_cleanup();

End User Licence Agreement (EULA).

Version 1.0.1. Published August 21, 2014

Created with GameMaker: Studio v1.4.1398

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.


Gravatar

Ever m 26 May 2018

:(

How should this asset work?


Gravatar

Joaquim I 02 June 2016

A example ?

Hi,

can you give an example of using with steps events and swipe direction ?

Because i don't understand how it works.

Package contents

Loading, please wait

What is the issue?

Back to Top