Sunday, 5 January 2014

Already got the Basics

After spending time on the project today I've managed to get a surprisingly large amount done. 

Firstly i made these two images so i could test the game -


 

So theres the car model and the road.

After a bit of messing around i got the car moving forwards using a button. I realise that i actually needed the background to move and for the car to stay in the same place on the Y axis.

So doing that was pretty simple i just swapped the code from the car to the background and tweaked it. The harder part for me was getting the background to repeat itself to make an endless road. For this i used trial and error which took a while but in the end i got to a setup i was happy with.

Next i did a quick google for acceleration in gamemaker that took me to this and part of that is what i tweaked and made it work nicely in the game.

While things were going well i thought i would have a look at how the tilt function on the device worked so that i could have the car moving left and right. A look around on google didn't find me anything i exactly wanted but on youtube an excellent video fitted perfectly, this is it.

I was extremely happy with it today and look forward to adding more detail next time, speak to you soon!

-
T
S

No comments:

Post a Comment