Using Events to set an objects orgin

Get help using Construct 2

Post » Wed Dec 26, 2012 11:59 pm

I'm making a game where there are two balls, one of them is rotating. Problem is, the whole point of the game is how the other ball is meant to be parented to the ball and rotating with it, but I can't get the effect I want. The only way I can think of pulling this off is having an event that sets this balls origin to the other's, but as far as I can tell such an event does not exist. Can someone please point me in the right direction?
B
4
Posts: 2
Reputation: 479

Post » Thu Dec 27, 2012 6:05 am

I'm not understanding what your goal is. The following is my best guess of what you are wanting but some of it I've just made up because you haven't included much detail.

You have two balls that are on the screen. Ball A and Ball B. Both balls are in a fixed location on screen. Ball A is rotating and Ball B is stationary. When Ball A spawns on the screen at some random location, Ball B must be at least 100 pixels radius away from Ball A.

If this did not describe what you want, then describe in detail what you want just like I did.
B
10
S
3
Posts: 102
Reputation: 1,888

Post » Thu Dec 27, 2012 6:23 am

Are you trying for relative position using a Parent Child model for ball B

or

you want to PIN(behaviour) ball B to ball A.


As I understand there is no Parent Child behaviour for sprites :( I've pinned objects to another, but unable to move them completely.
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 24 guests