Page 1 of 1

How to move another actor when clicking on another

PostPosted: Sun Jun 19, 2011 10:11 pm
by Clokio
Making a simple iphone game. What script should I use to move the player?

I created a actor (button) and a script to it.

Code: Select all
Player x+=10;


Get a error: miss ; :?:

Re: How to move another actor when clicking on another

PostPosted: Sun Jun 19, 2011 10:18 pm
by schnellboot
Player.x <-

Re: How to move another actor when clicking on another

PostPosted: Sun Jun 19, 2011 11:32 pm
by Clokio
Thanks ok Player.x the x of the player.
Is there a way to simulate the finger presseing the icon for a couple of secs, and the player will move as long as I press the player go forward.

Something like the repeat of the keydown.

------------------
Also rotate I try this. Dose not work.
Player.angle +=180;

Thanks

Re: How to move another actor when clicking on another

PostPosted: Mon Jun 20, 2011 12:55 am
by lcl
Clokio wrote:Also rotate I try this. Dose not work.
Player.angle +=180;

Angle is not the animations angle, so it won't rotate your actor. Angle is direction to move with directional_velocity. There is not built in function for rotating in current version of GE.

Re: How to move another actor when clicking on another

PostPosted: Mon Jun 20, 2011 12:58 am
by Clokio
Thanks

Is there a way to simulate the finger presseing (mouse down) the icon for a couple of secs, and the player will move as long as I press the player go forward.

:mrgreen:

Re: How to move another actor when clicking on another

PostPosted: Mon Jun 20, 2011 5:08 am
by again
Hey clovio sorry I havent been around much . I made a tutorial a while back step by step how to make a simple iphone game under the name krenisis. Here

viewtopic.php?f=4&t=8450&p=58594

If there is anything you dont understand just PM me or post it here.