How do I Check empty space (floor)

Get help using Construct 2

Post » Tue Apr 22, 2014 10:37 pm

hello, I would check when the road ends or if there is no object.

I have a character like mario turtles and wants will check if there is no floor returned.



here the file .capx example
https://drive.google.com/file/d/0B9uHUU ... sp=sharing
image reference
https://docs.google.com/file/d/0B9uHUU8 ... A2UlU/edit
B
48
S
10
G
10
Posts: 200
Reputation: 8,322

Post » Tue Apr 22, 2014 10:52 pm

I missed your capx but have a look at overlapping at offset.
https://dl.dropboxusercontent.com/u/542 ... Check.capx
B
94
S
33
G
122
Posts: 5,443
Reputation: 77,949

Post » Wed Apr 23, 2014 5:47 pm

Great! but
How do I get that instead that only works with that floor, work with all solid?
B
48
S
10
G
10
Posts: 200
Reputation: 8,322

Post » Wed Apr 23, 2014 8:17 pm

Put all of your solids into one family and check for overlap with that family. You could even give the family the solid behavior... If you have some solid sprites and some solid tiled backgrounds, though, you'll have create two families because these types of object cannot be contained together in the same family group.
A big fan of JavaScript. Image Image
B
76
S
20
G
80
Posts: 2,336
Reputation: 49,666

Post » Wed Apr 23, 2014 9:42 pm

Excelent!! thx
B
48
S
10
G
10
Posts: 200
Reputation: 8,322


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 43 guests