Hello. I created them on Adobe Fireworks. I created several “sections”, and them imported to Sprite Helper, where I added the physic shape.
In game, the sections are ramdomly chosen from a table.
The worst part of this kind of implementation is that it takes too much memory. I needed to use just one sprite sheet 4096x4096 for all the game, because using more, would consume too much memory.
So, I created only 15 different sections, due to this limitation of keeping everything inside just one spritesheet.
Level Helper could else have been used to import the sections, but I prefer the way I done.
As corona still does not support to fill a shape with a texture, levelhelper can’t be used to create the sections using the bezier tool. (gideros does support this feature).
The car I first created some of them on Levelhelper, but later due to soma very crazy bugs, like the car disappearing, I abandoned levelhelper and fully created them by code, and imported spritehelper sprite and physics.
I created a timer, the runs a function every X milleseconds, to check if the distance of the car related to the last created section, like this.
if(lastblock.x+lastblock.width/2+200 \< car.x ) then --here comes code to spawn another block at lastblock.x+lastblock.width/2 --here also create the coins and the gas gallon if needed. end
The coins and gas galloon are just physic bodies with high density, and very high friction to get stuck to the ground, and not slide. They are created a few pixels higher then the section, and them they drop.
The coins and gas galloon have two fixtures. One the is set as sensor and is used just to detect collision between them and the car, and other that is used to collide them with the ground.
They also have set mask bits and category bits, to not collide with the car or its wheels.
The gas galloon is created every X sections created, ad a ramdom position of the section.
There is a collision listener that checks collisions between the coins or galloon sensor, with the car or car wheels, to count coins or gas. After the collision the items have their property isVisible set to false.
Sections and cois/galloons, are just removed when they are out of the screen, by another timer that checks for this every X seconds.
Thank is the main idea of the game.
I used timers instead of on enterframeevent to create the sections and other stuff, as well to delete them, to increase game performance, as there is no need of these checks to be ran every frame.
Hello. UpHills Racing is doing very well on google play… It got 90.000 dowloads already. It is generating over US$ 100 daily on admob already, and between 20 and 30 USD on revmob,a these, just on Android version. The iOS version also generates some money but, cant be compared.
The UpHills Moto, was not successfull, and is getting very few downloads. I a don’t know what caused the uphills racing, to be so sucessfull. Maybe its name, very similar to the very popular hill climb racing.
I advertise both of them on Facebook Ads, and Admob, but the days I advertised them, I did’t see any significant increase in downloads.
Hello. I created them on Adobe Fireworks. I created several “sections”, and them imported to Sprite Helper, where I added the physic shape.
In game, the sections are ramdomly chosen from a table.
The worst part of this kind of implementation is that it takes too much memory. I needed to use just one sprite sheet 4096x4096 for all the game, because using more, would consume too much memory.
So, I created only 15 different sections, due to this limitation of keeping everything inside just one spritesheet.
Level Helper could else have been used to import the sections, but I prefer the way I done.
As corona still does not support to fill a shape with a texture, levelhelper can’t be used to create the sections using the bezier tool. (gideros does support this feature).
The car I first created some of them on Levelhelper, but later due to soma very crazy bugs, like the car disappearing, I abandoned levelhelper and fully created them by code, and imported spritehelper sprite and physics.
I created a timer, the runs a function every X milleseconds, to check if the distance of the car related to the last created section, like this.
if(lastblock.x+lastblock.width/2+200 \< car.x ) then --here comes code to spawn another block at lastblock.x+lastblock.width/2 --here also create the coins and the gas gallon if needed. end
The coins and gas galloon are just physic bodies with high density, and very high friction to get stuck to the ground, and not slide. They are created a few pixels higher then the section, and them they drop.
The coins and gas galloon have two fixtures. One the is set as sensor and is used just to detect collision between them and the car, and other that is used to collide them with the ground.
They also have set mask bits and category bits, to not collide with the car or its wheels.
The gas galloon is created every X sections created, ad a ramdom position of the section.
There is a collision listener that checks collisions between the coins or galloon sensor, with the car or car wheels, to count coins or gas. After the collision the items have their property isVisible set to false.
Sections and cois/galloons, are just removed when they are out of the screen, by another timer that checks for this every X seconds.
Thank is the main idea of the game.
I used timers instead of on enterframeevent to create the sections and other stuff, as well to delete them, to increase game performance, as there is no need of these checks to be ran every frame.
Hello. UpHills Racing is doing very well on google play… It got 90.000 dowloads already. It is generating over US$ 100 daily on admob already, and between 20 and 30 USD on revmob,a these, just on Android version. The iOS version also generates some money but, cant be compared.
The UpHills Moto, was not successfull, and is getting very few downloads. I a don’t know what caused the uphills racing, to be so sucessfull. Maybe its name, very similar to the very popular hill climb racing.
I advertise both of them on Facebook Ads, and Admob, but the days I advertised them, I did’t see any significant increase in downloads.
I want to learn car physics but unfortunately there is no tutorial or guide on internet. Can you please guide me how to create a physics car which can climb something
I want to learn car physics but unfortunately there is no tutorial or guide on internet. Can you please guide me how to create a physics car which can climb something