my drifting game
ktfright
Member Posts: 964
i made a beta of my drifting game D.R.F.T, and the controls are pretty good on my part, but now i want to know, is there any way i can have the user change the color of the car, or pause the game, or start menu? also, tell me what you guys think.
Comments
Currently, the only way to pause the game is to click outside of the game area.
For a start menu, you would need to make different scenes and use the Change Scene behavior.
http://gamesalad.com/wiki/how_to_gsc_change_scene_button
As for changing the color of the car, I made a quick wiki and demo game using your car as the model.
http://gamesalad.com/wiki/how_to_gsc_change_image_color_midgame
Hope that helped.
Currently, the only way to pause the game is to click outside of the game area.
For a start menu, you would need to make different scenes and use the Change Scene behavior.
http://gamesalad.com/wiki/how_to_gsc_change_scene_button
As for changing the color of the car, I made a quick wiki and demo game using your car as the model.
http://gamesalad.com/wiki/how_to_gsc_change_image_color_midgame
Hope that helped.
One way you can do this is if your car's centerpoint (it's x/y coordinates) is within a range defined by the centerpoint of your target with offsets of half its width and height. Or vice versa.
I've created a wiki that may help:
http://gamesalad.com/wiki/how_to_gsc_track_if_actor_is_over_another
Instead of the 'Display Text' behavior that says "I'm on target" you can replace it with a 'Timer' behavior that increments a global attribute.
Have another actor that has the 'Display Text' behavior that displays that global attribute.
And to have the score scroll with the camera, put it in a different layer.
See http://gamesalad.com/wiki/scene_layers
Do you know what specifically was added that is crashing GameSalad? Do you only have one area that is updating the score?
Right now, I only had one area, but I was planning to put that road actor on corners of tracks for points, but now, I'm kind of lost.
Perhaps something that just tells you how long it takes to run the course.
You probably know about layers already, but it was an example of what you can do to make levels look neat.
I dont know, that starfire game has the bullet sounds moving depending on where the ship actor moves, but i dont want that for my game.
I dont know, that starfire game has the bullet sounds moving depending on where the ship actor moves, but i dont want that for my game.
I guess you could have a sound actor that would always stay in the center of the camera view and then have it do the audio when those same conditions are met. Copy and paste that rule block with only the Play Sound behavior, turn off the collidable property, and put it in the same layer as the scoreboard.
Hope that helped.
when you press the gas button make it change the attribute to 1.
when you lift the gas button set it back to 0.
now put a condition with your down keys for left and right, and make it only work if gas_on = 1