PlayMaker Help & Tips > iOS Help

Getting a car to move with touch inputs and Send Message states

(1/1)

Shizane:
Hi guys, I'm trying to figure something out here that is a bit beyond my knowledge. I have a truck driving game and I'm using the car scripts from this tutorial:

//www.youtube.com/watch?v=21zuMIsy2GM
I can control the car with keyboard input using WSAD or the arrows, only this will be an iPad game ultimately. So how I want the truck in my game to be controlled is when you touch and hold on the terrain, the truck will drive there (using the car physics script). Anywhere you touch, the truck will drive there. I thought this could probably be done with Playmaker so...

I'm using the 'Connecting Scripts with Playmaker' tutorial

//www.youtube.com/watch?v=g-C-6O10CNo
and the 'Touch Event' tutorial

//www.youtube.com/watch?v=rzmJf3rD0_I
..But I'm not sure what function I need to use for the 'Send Message' event. I want the truck to be able to drive anywhere 360 degrees just like you would control it via the keyboard.

Would anyone have any input on this? Or is there an easier way of going about it?

Cheers!

jeanfabre:
Hi,

 yes you will need to change the way you control your car, and this will likely be via on screen joysticks. There are numerous example on this forum.

http://hutonggames.com/playmakerforum/index.php?topic=230.0
http://hutonggames.com/playmakerforum/index.php?topic=1344.0

bye,

 Jean

Navigation

[0] Message Index

Go to full version