Is it possible too...

Discussion and feedback on Construct 2

Post » Mon Jul 11, 2011 9:40 am

Is it possible too set a Sprite Object a max X Position... so for example, Sprite1MaxX=10, so it can only go up 10x, so basically were setting a boundary.
B
3
G
1
Posts: 10
Reputation: 620

Post » Mon Jul 11, 2011 11:30 am

Just add an event like

Sprite X position > 10
-> Set Sprite X position to 10
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Mon Jul 11, 2011 12:02 pm

Ok, so how can i do that in a circle LOL, cause if you go X+10 and Y+10 it will be a box xD?
B
3
G
1
Posts: 10
Reputation: 620

Post » Mon Jul 11, 2011 2:15 pm

I believe this could be of help. Basically, you need an angle, and set X position to cos(angle) * 10 and the Y position to sin(angle) * 10.Magistross2011-07-11 14:15:33
B
46
S
17
G
18
Posts: 847
Reputation: 13,802


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests