One way to do this is to clamp the X, Y values to the screen edges after moving it to the spot above the character. So if X + arrowWidth > screenWidth, x = screenWidth - arrowWidth, etc.
Thanks! I'll try that!
Develop games in your browser. Powerful, performant & highly capable.
I don't know how to do this.
Edit: This is just an animation made with Stykz.
The green thing is what I want
Prepare for my highly advanced animation skills. (No, its not real life, just an animation. I know its pretty good)
I need an indicator on my hud that hovers above an object, but when the object is out of view, it moves to the closest edge of the view to the off-screen object.
I found out the problem. I can't drag the file from Chrome, I must drag it in from explorer.
Did you stop and start C2? That is required.
I thought I just had to drop it into C2 and it would ask if I wanted to install the plugin. It has to do with the new .c2addon file extension
Sorry, I gave the link but it was removed. Just look for "[PLUGIN] Notifications (updated)" in the completed addons forum.
Sorry but I am not trusted by this website yet so I cant do links
I downloaded a plugin file called "sirg_notifications_v1.1.c2addon" from [Link Removed By Stupid Website That Has A Bad Spam Filter] When I drag the .c2addon file in C2, nothing happens! What am I doing wrong?