Platform Behavior - is standing on obj / get obj under

New releases and general discussions.

Post » Mon Sep 13, 2010 5:14 pm

Pretty simple additions to the platforming behavior:

IsStandingOn(object) would check whether or not the calling object was standing on the object in parenthesis.

GetObjectUnder() would check exactly what object was being stood upon by the calling object. If player wasn't on the ground, this would return 'none'.
B
2
G
2
Posts: 14
Reputation: 678

Post » Mon Sep 13, 2010 6:20 pm

For the first one, you can just do
--is standing
----is overlapping (object) at offset 0,3

For the second one, the only problem is that if it returned an object name, it would usually be used in an expression in place of selecting an object, and "none" would be invalid, aside from the possibility of an object named "none"
Spriter Dev
B
88
S
21
G
12
Posts: 3,240
Reputation: 16,486


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 2 guests