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
9
G
10
Posts: 200
Reputation: 8,268

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
113
Posts: 5,356
Reputation: 73,273

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
9
G
10
Posts: 200
Reputation: 8,268

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.
B
76
S
20
G
74
Posts: 2,245
Reputation: 46,464

Post » Wed Apr 23, 2014 9:42 pm

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


Return to How do I....?

Who is online

Users browsing this forum: banquetburger and 47 guests