i need help in this...

Get help using Construct 2

Post » Mon Nov 11, 2013 10:16 pm

on any touch it will create a circle i need to create on this small circle 3 smaller objects its like bit-battles game when creating worriors
the game :
http://armorgames.com/play/15696/bit-battles
my capx :
https://dl.dropboxusercontent.com/u/62993408/spawn%20problem.capx
any idea
B
6
S
1
Posts: 49
Reputation: 573

Post » Mon Nov 11, 2013 11:33 pm

How i'd do it in text.
Touch 0 start - move circle to touch xy
touch 0 end - create objects on circles imagepoints

Touch 0 can be changed to any touch start and any touch end if you so wish.

you might want to adjust the z order of the objects after they are spawned.

Picture of how i would do it: Coming soon
B
4
Posts: 6
Reputation: 221

Post » Tue Nov 12, 2013 1:35 pm

no i dont want it on image point i want it randomly spreed on the ciecle
B
6
S
1
Posts: 49
Reputation: 573

Post » Tue Nov 12, 2013 1:50 pm

touch 0 end - create objects on [square.X + random(-square.width/2, square.width/2), square.Y + random(-square.height/2, square.height/2)];

it's an approach of a square.

If I remember my last solution for it, I'll come here and share.

Edited:
If your radius is the same circle width/2, use:
= Touch 0 end
-> Create objects on [circle.X + cos(random(360) * circle.width/2), circle.Y + sin(random(360) * circle.width/2)];TELLES08082013-11-12 13:56:15
Image
B
108
S
24
G
18
Posts: 1,372
Reputation: 22,817

Post » Tue Nov 12, 2013 2:26 pm

oh i hate mathematics but thanx bro it works
B
6
S
1
Posts: 49
Reputation: 573


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests