playMaker

Author Topic: Move object up on touch  (Read 6089 times)

Damian

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 188
    • Permaximum Betty
Move object up on touch
« on: July 23, 2011, 11:12:37 AM »
Well I try to learn how playmaker work and I got one things I want to try.

I have a game a do work on, but i stoped with it just for it got to heavy/slow in the way i did it.
But I think playmaker will solve that issues.

The thing I want to do is very simple.

Let say I have a ball that I want to keep in the air.
Every time I touch the ball it shall jump up in the air, let say 5 meters.
Then it will use the gravity to fall down to the ground.
When i touch the boll first it will have a speed and that speed shall slow down at the end until it stop and fall down again.
It has a mass so it should use the gravity to slow down( or if there is a better way)
Also when it falls down and you touch it you get one point, but you dont get any point if you touch it when its already on the way up.
(I guess i almost explain the game concept here)

So i guess i need to know how to detect the touch and make the system for the ball to move up and also add the score.
I guess the score shall be a guitext also.

I guss its kind of basic stuff that can be used alot on other things.
I wish there was more information on those things with android.

 

Andrew.Lukasik

  • Full Member
  • ***
  • Posts: 134
    • my twitter @andrewlukasik
Re: Move object up on touch
« Reply #1 on: September 21, 2011, 09:11:25 AM »
Actually Playmaker don't solves fps for you. Making these FSMs you have to worry about speed A LOT. For example - fully controlling all loops you've created (very important - and yet hard to control)
« Last Edit: September 21, 2011, 09:46:19 AM by Andrew_Raphael_Lukasik »