Jump to content

Draw Timer on polygon?


Recommended Posts

Posted

So in my paint, i highlight a polygon, how would I go about putting a timer on that spot for x amount of time, then clearing the polygon? I've looked through the API, and googled. The timer doesn't have to be a timer, it could be a progress bar, or just some indication of an integer's progress. 

 

logic I'm going for:

//pick up item off table

//draw polygon around item's spawn

//visual representation of how long until item appears

//clear polygon  

I know i could do it off of the polygon, and just have a timer, I'm just curious if I can draw inside the polygon, and how to go about it. Thanks everybody. 

Posted
3 hours ago, FrostBug said:

Did something similar with hunter trap positions:

image.png.412a0a328a929ece5d690a2bc6aad269.png

By getting the positions polygon (position.getPolygon(bot)) and drawing the timer a little bit north of it; changing color based on % remaining

What do you mean by 'inside the polygon' ?

Perfect, exactely what I was in need of. I was hoping you'd be the one to respond to this post, love me some frost scripts.

  • Boge 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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...