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.
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();
Version 1.0.1. Published August 21, 2014
Created with GameMaker: Studio v1.4.1398
You can only review assets you've bought.
How should this asset work?
A example ?
can you give an example of using with steps events and swipe direction ?
Because i don't understand how it works.