Check Values for WebStorage

Get help using Construct 2

Post » Fri Dec 16, 2011 5:21 am

Hey guys. I've got a little space game here:

http://dl.dropbox.com/u/1378330/SpaceSim.capx

All the info on the stars is saved to WebStorage when generated, then loaded back from WebStorage. However, when generating stars, I want to check that there aren't too many occupying one spot - i.e. that no stars are, say, closer than 1000px. I can't really think of any way to do this. Any thoughts?
B
55
S
12
G
8
Posts: 339
Reputation: 9,314

Post » Fri Dec 16, 2011 10:48 am

what if you generated them from a middlepoint of the layout and then get a random angle + a distance and add that distance to a var and create the next one, so the distancevar is like a countervtrix2011-12-16 10:49:15
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028


Return to How do I....?

Who is online

Users browsing this forum: Virpoja and 15 guests