Move an object question

azavegaazavega Member Posts: 362
edited November -1 in Working with GS (Mac)
Hi guys! Somebody tell me please How i make an object move with a finger and keep moving to the direction and speed i apply to it on the screen.
Any help will be appreciated it

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    Think you just want to constrain actor's x,y to touch1 x,y (use expression--touch is in Devices)
    and touch# references the # of simultaneous touches ... puzzled me for a while...how could you get 11 touches ...use toe or nose or tongue? ah, well, the extra must be for multi-player modes.

    touch inside seems to work better for me than touch is pressed.
    direction will be user controlled...speed also.

    think you could stop/limit movement with a min(x,y) and max(x,y)

    MH
  • azavegaazavega Member Posts: 362
    thanks for your help guys i will check that demo you talking about
  • ORBZORBZ Member Posts: 1,304
    rule touched
    change attribute self.touchx = mouse.x
    constrain self.motion.linearVelocityX = (self.touchx - mouse.x) [you may have to flip this]

    that should do it.
  • azavegaazavega Member Posts: 362
    Nope that didnt help neither, i still stuck on this thing and i cant find that demo as well...
  • ORBZORBZ Member Posts: 1,304
  • azavegaazavega Member Posts: 362
    cant see the demo, when i downloaded it opens with the chess app dont know why...
    !@#$% i fell like an idiot asking so many things... sorry im really new on this
  • ORBZORBZ Member Posts: 1,304
    download it inside gamesalad. there is a bug in the website where the "download" button doesn't work. open gamesalad, go to the "shared projects" tab and click the pencil icon.
  • azavegaazavega Member Posts: 362
    thank you... thats exactly what i need i really appreciated ur help
Sign In or Register to comment.