im making a gta-like game... no violence, etc
Offline
Maybe when you touch the car and hold whatever to get inside, you make the character go behind the car and go to the car sprite until you press the button again
Offline
It's pretty difficult to make a GTA game without violence mate
Anyway, I would use a variable called
(inCar?)
when gf clicked forever if <<key [e v] pressed?> and <touching [car v]?>> set [inCar? v] to [true] when gf clicked forever if <<key [e v] pressed?> and <touching [car v]?> and <(inCar?) = [true]>> set [inCar? v] to [false]Then do whatever you want when you're in the car (high speeds etc)
Last edited by Stickman704 (2012-02-27 11:49:44)
Offline
Stickman704 wrote:
It's pretty difficult to make a GTA game without violence mate
Anyway, I would use a variable called(inCar?)when gf clicked forever if <<key [e v] pressed?> and <touching [car v]?>> set [inCar? v] to [true] when gf clicked forever if <<key [e v] pressed?> and <touching [car v]?> and <(inCar?) = [true]>> set [inCar? v] to [false]Then do whatever you want when you're in the car (high speeds etc)
I agree with what he said.
This is a good way to setup your script.
Offline
Make a variable called incarorout
Like on a game on my other account
Offline
A script that might make this work a little better so there's no overlapping of scripts would be:
when key [e v] pressed if <touching [car v]?> set [car v] to (((car) + (1)) mod (2)) endAnd then inside your player sprite, if the variable car = 0, he is outside the car...if car = 1, he is inside the car.
Offline
Stickman704 wrote:
It's pretty difficult to make a GTA game without violence mate
Anyway, I would use a variable called(inCar?)when gf clicked forever if <<key [e v] pressed?> and <touching [car v]?>> set [inCar? v] to [true] when gf clicked forever if <<<key [e v] pressed?> and <touching [car v]?>> and <(inCar?) = [true]>> set [inCar? v] to [false]Then do whatever you want when you're in the car (high speeds etc)
Fixed
Last edited by jontmy00 (2012-05-15 08:55:55)
Offline
Or you could stamp all the stationary cars onto the background, then get the walking sprite to change to a car costume when the person is in the car
Offline