How do I instence sprite with event

Get help using Construct 2

Post » Sun Dec 14, 2014 9:40 pm

Hello again.

Here what I did for now.

I want to create a gear so I create a round sprite with another teeth sprite that colid on another round gear.
but it's a lot of event because each teeth need to colid to other gear teeth and each teeth need to colide to make roll the other gear.

I try to clone the sprite teeth but it have differant name and can't heritate from other event teeth.

it's there a way to make array of sprite that share same event and beavior ??

Posts: 5
Reputation: 185

Post » Mon Dec 15, 2014 11:41 am

insert 2 objects - both sprites - one teeth one round cube.
add pin behavior to teeth. add solid to both.
open teeth / circle image editor - go to collision box right click em and select "guess collision polygon"
after that in events - on start of layout pin teeth to circle. if you want a special position to pin, set their position to image-point.
- do your stuff to move /whatever and enable collisions on your sprites - then you should collide nicely.
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

Posts: 636
Reputation: 9,477

Return to How do I....?

Who is online

Users browsing this forum: Cadwal and 3 guests