View Single Post
Violet CLM Violet CLM's Avatar

JCF Éminence Grise

Joined: Mar 2001

Posts: 10,983

Violet CLM has disabled reputation

Mar 9, 2020, 10:55 PM
Violet CLM is offline
Reply With Quote
Quote:
Originally Posted by chandie View Post
However I've tried using Normal Turtle animations and a new behavior in order to make it work and it helped.
Broadly speaking, it seems to be working, at least once I get rid of the if (u==0||u==1) line which I assume refers to a variable you didn't include in that snippet. You are running into an issue where killing it using a physical attack fails to cause the level to end, but jObjectPresets[OBJECT::NORMTURTLE].playerHandling = HANDLING::ENEMY; should fix that. Also you probably don't want STATE::KILL to call boss.deactivate().
Quote:
I mean a shootable water level event like the ones in dreempipes.
Sure... jjSetWaterLevel exists. You may need to figure out jjBEHAVIORINTERFACE and its onObjectHit method, though, since I'm guessing you want the object to react only to being shot by bullets, not to being buttstomped.
__________________