Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

How to replace text with something else..

$
0
0
I know this might be super simple. Here is my code so far: #pragma strict static var currentScore : int = 0; var offsetX : float = 22.43; var offsetY : float = 376.6; var sizeX : float = 148.86; var sizeY : float = 25.2; function OnGUI () { GUI.Box (new Rect (offsetX, offsetY, sizeX, sizeY), "Pages Collected: 4/" + currentScore); } I need it so when "currentScore" equals 4 it replaces the "Pages Collected: 4/" To another text. Would this be possible if so can someone help me? ~~Lost Syndicate

Viewing all articles
Browse latest Browse all 1875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>