Associate sprite position with another one

Get help using Construct 2

Post » Fri Jul 12, 2013 1:26 pm

I have a ball for a pinball game and the physic work fine when rotation enable is checked in the ball property. My problem is the following.

To have a realistic chrome effect on the ball, the chrome texture should not rotate so I cannot use the ball that is actually doing the physic (because it rotate). Instead I would take another ball sprite, put it over and "pair" it so it follows the ball with the physic, but not it's rotation.

How can this be done?
B
14
S
5
G
1
Posts: 25
Reputation: 1,541

Post » Fri Jul 12, 2013 2:05 pm

A simple solution could be to just move the sprite on top of the ball every tick.

Dont know if thats the solution you are looking for.

I have made a small example to illustrate. (its a fast mockup. so alignment is not completely correct)

.capx
B
20
S
6
G
4
Posts: 347
Reputation: 4,451

Post » Sat Jul 13, 2013 12:22 am

thx a lot! I will check next friday as I am away from my PC with the C2 licence.

Merci!



B
14
S
5
G
1
Posts: 25
Reputation: 1,541


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 11 guests