How do I Spread the world by points

Get help using Construct 2

Post » Thu Apr 23, 2015 12:09 pm

hi
i want to create points in 2d page
i want my first point position start from 0,0
and the others is like :
point2 = 50,0
point3 = 0,50
point4 = -50,0
point5 = 0,-50
point6 = 25,25
point7 = -25,25
point8 = 25,-25
point9= -25,-25
and ....
i want my points start from 0,0 and create them every tick and go to the side from each way
if my points look like a rectangle , every tick seems that go bigger
every point distance must be the same
so what i must do ?
B
16
S
6
Posts: 243
Reputation: 1,755

Post » Thu Apr 23, 2015 12:55 pm

or create in a random position but near the other points ?
B
16
S
6
Posts: 243
Reputation: 1,755

Post » Fri Apr 24, 2015 9:16 pm

You can do the pattern you're specifying like so:
https://dl.dropboxusercontent.com/u/542 ... ttern.capx

To create near an existing point you could do something like the following:
pick random instance of sprite
--- create sprite at (random(-100,100)+sprite.x, random(-100,100)+sprite.y)
B
94
S
33
G
114
Posts: 5,359
Reputation: 73,779

Post » Mon Nov 09, 2015 4:01 pm

R0J0hound wrote:You can do the pattern you're specifying like so:
https://dl.dropboxusercontent.com/u/542 ... ttern.capx

To create near an existing point you could do something like the following:
pick random instance of sprite
--- create sprite at (random(-100,100)+sprite.x, random(-100,100)+sprite.y)

thanks but
i dont want they overlap
i want they start from 0,0 and then go to the edges
and never stop
and no overlap
like 2D array start from 0,0 and go to edges and never get closer or farther
B
16
S
6
Posts: 243
Reputation: 1,755

Post » Mon Nov 09, 2015 4:49 pm

I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Nov 09, 2015 5:05 pm


yes almost
but i want to create points one by one
and start from 0 and expand to 4 direction (+x,+y,-x,-y)
this example just expand in 2 direction (+x,+y)
B
16
S
6
Posts: 243
Reputation: 1,755

Post » Mon Nov 09, 2015 5:11 pm

Did you learn anything from the examples me and R0j0 gave you?
As you can see getting what you would like is entirely possible..
Maybe it will give you the inspiration to make it yourself..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Nov 09, 2015 5:24 pm

LittleStain wrote:Did you learn anything from the examples me and R0j0 gave you?
As you can see getting what you would like is entirely possible..
Maybe it will give you the inspiration to make it yourself..

ok i made it work thanks
B
16
S
6
Posts: 243
Reputation: 1,755


Return to How do I....?

Who is online

Users browsing this forum: sean080 and 27 guests