Any easy way to make objects "stick" to eachother?

For questions about using Classic.

Post » Fri Sep 26, 2008 4:29 pm

Hi,

I'm doing a draggable options box that you can call up in my game. I'm wondering, will i have to do an "always set options text to Optionsbox.X+43" etc. for all the objects i want to stick to the objects box when its being dragged. Or is there some clever simple way?

The problem with doing it in code is also that it takes a while to get the objects at the right position. I don't really mind doing it this way, but i thought i'd check if there was a better way.
B
2
S
2
G
5
Posts: 448
Reputation: 2,546

Post » Fri Sep 26, 2008 6:49 pm

Action points? or whatever they are called. Just make a bunch, name them and tell the object to always position to its action point on the menu. Although you could make the menu static and have hitboxes for the buttons that are positioned instead so that when dragged the buttons dont jitter.
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Fri Sep 26, 2008 7:09 pm

families?
if each one needs to be offset at different amounts, can give a family variable (dunno if you can with text objects actually) and set each one's initial value to something different
B
2
S
2
G
5
Posts: 236
Reputation: 2,122


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 9 guests