Move an object question
azavega
Member Posts: 362
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
Any help will be appreciated it
Comments
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
change attribute self.touchx = mouse.x
constrain self.motion.linearVelocityX = (self.touchx - mouse.x) [you may have to flip this]
that should do it.
http://gamesalad.com/game/play/83632
!@#$% i fell like an idiot asking so many things... sorry im really new on this