One actor stick firmly to another ???
Hello everybody!!! For few days I am looking for resolving to my problem without any success.
Is it possible with GS to make two (or more) actors, to be stick firmly/inflexibly one to another. Of course I mean situation when they are moving ;-) I am playing with that problem, but can't find the answer. I am constraining/changing actors positions one according to another, but the best result I have, you can see on two movie examples below:


As you can see, one actor follows another, but with inertia, like they would be connected with elastic line. And I want actors to be connected like one body, firmly, and move with no inertia. Is it possible to gain such effect? And to do that in easy way?
Please help me someone if you can ;-)
Is it possible with GS to make two (or more) actors, to be stick firmly/inflexibly one to another. Of course I mean situation when they are moving ;-) I am playing with that problem, but can't find the answer. I am constraining/changing actors positions one according to another, but the best result I have, you can see on two movie examples below:


As you can see, one actor follows another, but with inertia, like they would be connected with elastic line. And I want actors to be connected like one body, firmly, and move with no inertia. Is it possible to gain such effect? And to do that in easy way?
Please help me someone if you can ;-)
Comments
Maybe finally someone from "masters" here or just more experienced, will be interested to pay attention to this question... Is it possible? Or not?
@ chobbipod: Of course I am constraining x and y position of other actor by adding value "plus or minus smthing (70)" - to place it where it should be realively to actor it is following ;-)
Perhaps there is something else going on that is making the actor lag a little. Got some other rules and/or behaviors that are causing the lag? Is there a timer and/or some looping mechanism that is updating too slowly?
Roy.
I will try this idea, and give answer as quick as possible if it brought any difference to that problem ;-) But anyway, that is smthing new to try ;-) Thanks
BUT , if your "red" actor simply constrained to mouse or to touch , then constraining the blue to the same touch with an offset should work fine .
Let me know
Roy.
I want to build horizontal strip made of such small blocks. I want this blocks to be draggable and movable (horizontaly), and sticked together like one body.
First I was trying to gain such effect by "collide" behavior, but it doesn't work fine. Then I started to play with constraining. And here we are. Still don't know how to make it :-/
<iframe width="425" height="349" src="http://www.youtube.com/embed/F8if8Cl8So4?hl=en&fs=1" frameborder="0" allowfullscreen></iframe>
I'm just constraining one actor to another, don't seem to have the lag. As RThurman said, perhaps there are other rules interfering
Sorry I should have recorded with 2 different colours for the actors, but I've tested I get no lag after changing the colours
Lets summarise:
- I have behavior to constrain actor (x,y) position to touch position when it is pressed and inside, otherwise: constrain actor position to another actor
- Plus selfrotation = 0
Thats all. I can't see what can make this "lag" effect
@chobbipod: And you? What rules/behaviors you used?
I just reproduced your rules/behavior and I don't get any noticeable lag/shearing/tearing.
Are these the only rules/behavior(s) going on?
Are there perhaps a bunch of constraints on other actors that are slowing the whole thing down?
Does this happen only in this particular game. Have you tried to start over on a fresh game file? (Perhaps this particular file/game is corrupted somehow.)
Is this a processor speed thing? (Are there too many app open and your machine is bogging down?)
I'm just trying to brainstorm what could be causing this. Hope it helps.
@ RThurman: Do you think It can be coused by hardware restrictions? Processor speed? Or smthing else? I am working on Mac Mini. Only GS open and web browser. No other apps.
Maybe a way to move forward is not to use constrains. Would you consider using 'change attribute' inside of a timer (set at .025 seconds).