Need Help with variables

For questions about using Classic.

Post » Sun Oct 24, 2010 7:58 pm

[url:2qrdfz06]http://dl.dropbox.com/u/7658043/gbmlauncher.cap[/url:2qrdfz06]

Can someone please help.Im creating a ginger bread man launcher.My problem is that i need to create a type of scoring system that shows how high you launched the gbm into the air.I have included the cap file.The game was created with v99.96 of Construct.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Mon Oct 25, 2010 3:59 am

Here is a simple high score method:

http://dl.dropbox.com/u/5868916/gbmscore.cap

I just made some simple calculations on the position of the gbm every tick, using Sprite3.Top as ground coordinate, and offsetting for the centered hotspot of the gbm. It's not exact if the sprite is sideways, but it would likely be overkill to nitpick that.

The black bars were adjusted to be centered 500 pixels from top of the ground sprite, and each other, and that represents 10m, hence the '/ 50' in the arithmetic.

The highest point is determined by comparison between two variables. A fairly common method that one might employ in such a situation.
B
3
S
2
G
2
Posts: 187
Reputation: 1,449

Post » Mon Oct 25, 2010 10:36 am

Thank you Silent Cacophony that is exactly how i wanted it.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest