Is it possible to create a magnatized effect?

Get help using Construct 2

Post » Tue Oct 22, 2013 10:38 am

hello everyone i have one more question today,

I was wondering if it is possible to create a similar effect that terraria has ingame.Im trying to make my items pull to my player when he gets close to the specified item, i will add a refference for you guys aswell,thanks again everyone.

http://www.youtube.com/watch?v=p5JVJXUJ5ek

this clip from youtube explains best what im looking for,the wood that comes from the tree has a faint magnatized effeft that pulls to the player.
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,378

Post » Tue Oct 22, 2013 10:52 am

Realistic would it be with gravitation, but you could do it also do it with an calculation.

I could make an small example if I have some time.
B
15
S
6
G
6
Posts: 512
Reputation: 5,555

Post » Tue Oct 22, 2013 10:55 am

@Darklinki that would be awesome if you could do that man.i just would love to know how to recreate that type of effect for my coins.Thank you once again for your reply.
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,378

Post » Tue Oct 22, 2013 11:00 am

for each wood
if distance(player.x,player.y,wood.x,wood.y) < 50

- wood set angle towards player
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: blackhornet and 5 guests