Frage

I am new to gamesalad.

I want to move my actor where person clicks.

I can't find the way how to do it.

I am able to move it to specific position (coordinates) but cannot move it to clicked coordinates.

can anyone please help ??

War es hilfreich?

Lösung

You already know how 'actor' can be moved to specific position, so that it is simple. Just, change the position to 'game.Touches.Touch 1.X' in 'Move To' behavior.

Move To Behaviour

'Position' value is below.

Position X : game.Touches.Touch 1.X

Position Y : game.Touches.Touch 1.Y

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top