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
378
S
220
G
84
Posts: 23,863
Reputation: 188,019

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
58
S
23
G
22
Posts: 890
Reputation: 16,790


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests