Jump to content

Text being displayed then removed after a time interval. Script not working as i believe it should.


tomis13lack
 Share

Recommended Posts

I have made a script which shows the price of an object. Everything works up to the "timer." It doesnt cause any errors, but it doesnt do what it should. I am trying to make it stop displaying the text. Here is what I have so far:

if (xd==7) then
 context:SetBlendMode(1)
 context:SetColor(d)
 context:SetFont(font)
 context:DrawText("Not enough money, you need "..self.cost,50, 50)
 Time:GetCurrent()
 local stop = Time:GetCurrent() + 1
 if (Time:GetCurrent()==stop) then
  xd = 1
 end
end

 

This is located in a Script:PostRender(context) function.

 

Any ideas?

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.   Paste as plain text instead

  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...