# Attaching?

Post your own tutorials, guides and demos.

### » Thu Mar 12, 2009 4:54 am

Hey all,

How would I go about attaching the blue circle to a corner of the rectangle? While not using an action point.

If i change the X to something different then the Y it sorta free floats.
B
33
S
14
G
4
Posts: 251
Reputation: 4,049

### » Thu Mar 12, 2009 6:43 am

Hehe, sorry this is not helpful at all

[attachment=0:y3qj7geu]huh.cap[/attachment:y3qj7geu]

Any particular reason you don't want to use an image point? It would be the easiest way.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

### » Thu Mar 12, 2009 8:29 am

I don't know how to do that using trigonometry like yours, but here's a pretty simple way - you put the circle in the center, then move it towards the end and top of the box, all within the same tick.

PS: Deadeye is right, I think - it might be simplest to just place image points at all four corners and use those.
B
5
S
2
G
4
Posts: 113
Reputation: 2,101

### » Thu Mar 12, 2009 8:47 am

What is wrong with Box.Bottom, Box.Top, Box.Left, Box.Right?
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

### » Thu Mar 12, 2009 9:10 am

[quote="Mipey":3n4rsodg]What is wrong with Box.Bottom, Box.Top, Box.Left, Box.Right?[/quote:3n4rsodg]

[attachment=0:3n4rsodg]huh.cap[/attachment:3n4rsodg][/quote:3n4rsodg]

That's what
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

### » Thu Mar 12, 2009 9:14 am

[quote="deadeye":2pykv4bz][quote="Mipey":2pykv4bz]What is wrong with Box.Bottom, Box.Top, Box.Left, Box.Right?[/quote:2pykv4bz]

[attachment=0:2pykv4bz]huh.cap[/attachment:2pykv4bz][/quote:2pykv4bz]

That's what [/quote:2pykv4bz]
I admit I haven't actually checked the caps... That is trippy O.o
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

### » Thu Mar 12, 2009 2:02 pm

Yeah, I can't use an image point because I'm loading sprites from an external file, and the image points would change for each picture. So I need to figures this way out.
B
33
S
14
G
4
Posts: 251
Reputation: 4,049

### » Thu Mar 12, 2009 8:40 pm

B
2
S
2
G
4
Posts: 171
Reputation: 1,792

### » Thu Mar 12, 2009 8:44 pm

If the objects will vary in size, then you should consider using .Width, .Height expressions instead of fixed numbers
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

### » Fri Mar 13, 2009 8:22 am

dkdoom! Thank you! that's exactly what I needed. Awesome!
B
33
S
14
G
4
Posts: 251
Reputation: 4,049

Next