Jump to content

Struggling to get Text to be drawn when the player touches an object


Sargeant12344
 Share

Recommended Posts

I know this is a very basic issue, apologies but whenever I place the code I want checked in the Speechmarks it comes up with this: unfinished string near '"if reached_goal then'

 

System:Print("if reached_goal then
			 self.reachedGoal = true
end")

 

I think what you are trying to do would be something like this:

if reached_goal then
 System:Print("Hit this code")
 self.reachedGoal = true
end

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