Check overlapping for new created objects

Get help using Construct 2

Post » Fri Jan 16, 2015 3:40 pm

Hi.

I started today with this engine and i like the stlye how to "program".

I`m trying to do an old idear of a game. I wold like to generate a random room with a random size at start up.
It mostly works, but i would like to check, if i create a new sprite that this one will collide with an allready existing one.
I tryed many solutions, but the event never fires.

I just want to pick up one random sprite, chose a random direction and if their is no sprite, create one.
At the moment the room looks correct how i want, but its mostly to small, because the overlap check don`t work.

Hope someone can help me with this "easy" problem.

Greetings, Aerics
You do not have the required permissions to view the files attached to this post.
B
2
Posts: 2
Reputation: 154

Post » Fri Jan 16, 2015 4:00 pm

In system 'Pick overlapping point' set the x & y to RoomTile then invert the condition.
ImageImage
B
114
S
51
G
24
Posts: 790
Reputation: 23,480

Post » Fri Jan 16, 2015 8:03 pm

Thanks for your help, but i didn`t get it :(

I tried with just the x and y and then i never create any more objects.
If i change to the +65 etc., it looks same like before.

What i`m doing wrong?
It`s not so easy with the free version without debugging :(
You do not have the required permissions to view the files attached to this post.
B
2
Posts: 2
Reputation: 154

Post » Fri Jan 16, 2015 9:11 pm

Kind of working for me, but some tiles still overlapping
Image

Need some work on this then.
ImageImage
B
114
S
51
G
24
Posts: 790
Reputation: 23,480

Post » Sat Jan 17, 2015 1:17 am

Got it working now. No overlapping :D
Image
live_demo_tiles
You do not have the required permissions to view the files attached to this post.
ImageImage
B
114
S
51
G
24
Posts: 790
Reputation: 23,480

Post » Thu Apr 06, 2017 3:24 pm

alextro wrote:Got it working now. No overlapping :D
Image
live_demo_tiles

Hello. you have an update link?
Image Image Image
B
32
S
12
G
27
Posts: 761
Reputation: 17,246

Post » Thu Apr 06, 2017 9:13 pm

@MPPlantOfficial the capx is available to download, online demo is not. Be sure download the attachment. It works.
ImageImage
B
114
S
51
G
24
Posts: 790
Reputation: 23,480


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests