Jump to content

Alternatives to Tick handlers


Lua
 Share

Recommended Posts

Question 1: Is there an alternative to tick handlers? I have a block and something happens to it after a certain amount of time and id usually use a tick counter to time and then execute but id need to make the variable a static one to make it accessible from my Block class, now I dont want that because I dont want the timer to be the same for every block. Is there a way around this or an alternative? Im trying to avoid static at all costs

 

*To people who suggest the update method in Block, it dosent tick enough, so no.*

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.