How to create a "swipe left and right to move dot" actor
Georgeolnians
Member Posts: 10
in Help Wanted
I want to create an actor which moves a dot when I hold the "swipe left and right to move dot" actor with touch. It is on a game called " the line" on the app store and I was wondering how to do it.
Comments
Start by Googling swipe gamesalad. There are several tutorial videos to get you started.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
The line game does not really use swipe. Instead it just moves the dot to the x position of the mouse/touch. The easiest/fastest way would be to use a constrain behavior in the dot.
Constrain Attribute: [ self.Position.X ] To: [ game.Mouse.Position.X ]
Thanks, @RThurman... I haven't played it so I was just going on screenshots.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
@tatiang -- no problemo!
You might want to look at it and see if it might be something to teach your students how to create. In GameSalad, it is extremely easy to make. I would suggest that it might make an useful second/third assignment. (Just after making 'Hello World". But before making a ball bounce.)
The basic game would consist of:
one dot actor
one wall actor
one constrain behavior
one control camera behavior
one collision/overlap rule
one restart scene behavior
And thats it!
That's so interesting. In any traditional programming language, I'd start with 'Hello World'. And when I used to teach Flash animation, I'd start with making a ball bounce. The nice thing about GameSalad is I can start with Asteroids or something else equally more exciting.
Alright, I watched a gameplay video. You're right, that would make a good starter game. I actually had a student make a Mac game like that a few years back and it was impressive.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User