I have a game like jet pack joy ride, how would i go about making score for distance travelled with also the possiblity with adding coins to score to
Thanks for any help
How about using the distance function to check the distance?
Where instance1 could be your jet pack and instance 2 could be a starting point. For coin count the number collected and times it by a score you want to give per coin.
Give it a shot ;)
Thanks for the help, what would the code be for displaying the distance to a text box ?
randomrick, the Distance expression he gave is the code you'd use. There's more on the Distance expression, as well as expressions in general, at the following:
Also, it generally is much easier to provide assistance if you provide a .capx to show where you're currently at. It's easy to make adjustments and even add comments to other's .capx posts.
Here you go i need the distance to appear in the top left corner, thanks for help
Are you sure you went through the Beginner's guide for C2 ?
The part about the HUD is pretty much the answer.
Edit: Oh yeah also, I didn't download your file, because of boring filehost which requires clicks and advertisment and 3.9mo, it's probably already too much as far as download size goes.
Develop games in your browser. Powerful, performant & highly capable.
Got it sorted thanks for all the help