You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.
Subj. All zOrder works ok, except negative values.
Don't use -1, -2, etc values for Z for any sprites. After loading csd file again - you will get these sprites on top with biggest value instead.
The text was updated successfully, but these errors were encountered:
The following code may help the issue or not
change the line in the end of function - (void) setupFromDictionaryRepresentation: (NSDictionary _) aDict in CSSprite.m
[self _setZOrder: [[aDict objectForKey:@"posZ"] floatValue]];
to
void (_setter)(id, SEL, NSInteger);
setter= (void (*)(id, SEL, NSInteger)) [self methodForSelector: @selector(_setZOrder:)];
setter(self, @selector(_setZOrder:), [[aDict objectForKey :@"posZ"] intValue]);
Subj. All zOrder works ok, except negative values.
Don't use -1, -2, etc values for Z for any sprites. After loading csd file again - you will get these sprites on top with biggest value instead.
The text was updated successfully, but these errors were encountered: