Jump to content

Recommended Posts

So, theres this shadow enemy I have that can ONLY be clicked on by one of its tails:
image.thumb.png.08090266d0a08e74ba22eb0e588920f7.png

And I have no idea why this is the case.

creepingfear.lua

It doesn't seem to have anything to do with the CharacterPhysics, the scale, or orientation and layer.

  • Sad 2

this problem is common with mod stuff and from my experience it almost always happens when your stuff is texture is big and isn't super low res textures like the vanilla game (and even sometimes happens on stuff which isn't big so it's a very random problem that haunts mod stuff). there isn't any way to fix it to my knowledge other than trying to make a whole new scml from scratch... really annoying :(

Edited by --- -.-

I noticed a number of ents that are aligned ground such as ponds or shadow hand usually have a sortorder of 3, even then I have no idea why the mouseover is acting funky. Small objects seem to use setraytestonbb(true), I assume that changes their bounding box for mouseover to the texture's dimensions, but there is very poor documentation for trouble shooting stuff like this.

  • Like 1

Damn, not getting notified of some of these replies!

 

Thanks people, unfortunately messing around with sortorder and SetRayTestOnBB don't seem to have any effect, and from brief tests I haven't been able to get it clickable by messing around with texture size.

Maybe doing it again from scratch is the only option, damn...

 

Edit: It seems that when the animations were made all of the sprites were rotated in spriter, instead of the original png being in the right orientation. Apparently this can cause problems with how the click boxes are made.

 

Edited by Ogrecakes
  • Sad 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...