Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / AGK Game touch sprite

Author
Message
Garro®
6
Years of Service
User Offline
Joined: 26th Apr 2018
Location:
Posted: 5th May 2018 19:32
Hi everybody.

I have a game where I have to press and hold a button and then a timer starts.

If the timer hasn't started yet and user just touches the background (which is a sprite too) nothing will happen else if the user touches and holds the button the timer must start and then if user touches background, 5 sec penalty must be assigned. If user goes out of the button the game is over.

How can I do?

Thanks in advance.
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 6th May 2018 09:32 Edited at: 6th May 2018 09:33
As far as I understand, you want to check if the user holds a finger on a sprite that moves around and then start a timer when the user touches the sprite, the user has to keep following the moving sprite and if the user touches the background instead of the moving sprite a time penalty will be added to the timer? (I just assume you want the sprite to move around).
13/0
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 7th May 2018 13:52 Edited at: 7th May 2018 14:42
Something like this
fubar
Garro®
6
Years of Service
User Offline
Joined: 26th Apr 2018
Location:
Posted: 9th May 2018 08:01
Thank you guys but the sprite doesn't move.. It's just one sprite to press and I have to count for how much time user pressed it.

My mistake for the explanation

Login to post a reply

Server time is: 2024-11-23 20:02:15
Your offset time is: 2024-11-23 20:02:15