Create object randomly on non-solid object

Get help using Construct 2

Post » Fri Dec 20, 2013 8:03 am

Hi!

I have been create some game. In the game, there are some houses, buildings and another solid object. And i want to creating some object randomly in non-solid object. Like in road or land. How i do it? Thank you

Sorry for English Regga3542013-12-20 08:19:19
Creating games makes your imagination realized
B
14
S
4
G
1
Posts: 55
Reputation: 1,130

Post » Fri Dec 20, 2013 9:34 am

i dont understand what is the problem ?
Creator of MiniDayZ
B
22
S
2
G
2
Posts: 75
Reputation: 1,858

Post » Fri Dec 20, 2013 10:03 am

@Farsight

I mean is On Start of Layout -> Create object randomly but in not Solid object.

I'm create the Garbage Collector game. And On Start of Layout system creating some Trash in Randomly. But, sometimes the Trash can created on Solid Object, the Player Can't to Collect it.

Thanks for reply   
Creating games makes your imagination realized
B
14
S
4
G
1
Posts: 55
Reputation: 1,130

Post » Fri Dec 20, 2013 10:20 am

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

Post » Fri Dec 20, 2013 10:37 am

@LittleStain:

Thank you so much!
Creating games makes your imagination realized
B
14
S
4
G
1
Posts: 55
Reputation: 1,130

Post » Fri Dec 20, 2013 4:23 pm

Umm, Sorry @LittleStain, it still not help me. But, never mind. Thanks for your help!

Anybody have other ideas?Regga3542013-12-20 16:28:23
Creating games makes your imagination realized
B
14
S
4
G
1
Posts: 55
Reputation: 1,130

Post » Fri Dec 20, 2013 10:58 pm

post a capx so we can see the problem
Image
B
28
S
11
G
2
Posts: 139
Reputation: 3,299

Post » Sat Dec 21, 2013 4:41 am

@Fidasx: Sorry, i can't. I Have edit my game so now different. But, you can keep help me, I still appreciate it, and maybe I'm using it that way again.

You can to see this image

https://www.dropbox.com/s/hrvvu7ojr9dkhsr/C2TrashProblem.bmp?m=
Creating games makes your imagination realized
B
14
S
4
G
1
Posts: 55
Reputation: 1,130

Post » Sat Dec 21, 2013 9:24 am

The capx in the thread I linked to should work if you adjust the events to your need, something like this:

Put all the solids in a family
Make a global variable Startspawn

System compare variable: Startspawn = 0
-System While
trash is overlapping family - trash set position
-- system set Startspawn : 1
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

Post » Sat Dec 21, 2013 12:38 pm

try this one its probably what you want

https://app.box.com/s/5qv5cs3r8ari91e2juxg
Image
B
28
S
11
G
2
Posts: 139
Reputation: 3,299

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 11 guests