You might want to try your luck with a CSV and string tokenization. Edit your CSV with a spreadsheet app then paste the text in a global variable or what not. Although I'm not sure of what is the characters limit of a variable, it's probably more than enough for your needs ! (unless you were serious with your "million" <img src="smileys/smiley11.gif" border="0" align="middle" />)
What about a line of dots ? When the distance between the player and the last dot > threshold, then add a new dot. You could actually link those dots with the method you described, although it might look weird/jagged depending on the way the player can move.
Actually, the % operator exists in the C2 syntax. Use the "Compare two values" from the System object, and an else statement after if need be.
edit: ninja'ed ! <img src="smileys/smiley11.gif" border="0" align="middle" />
Or just use the % operator.
Set X position to : Mouse.X - Mouse.X % gridSize
Set Y position to : Mouse.Y - Mouse.Y % gridSize
Or just use the max function.
largestValue = Max(apple, pear, banana, watermelon)
No problem, glad to help !
Heh, I used "Search and Replace" to replace all occurences of [" by . and all occurences of "] by an empty string. It should work when minified now. Just redownload the link from the first post.
Please tell me how it goes ! <img src="smileys/smiley2.gif" border="0" align="middle">
There are probably rules to follow for the minifier to work. I just searched a little and found this. It shouldn't be too complicated for me to edit the plugin for it to work when minified.
Develop games in your browser. Powerful, performant & highly capable.
That's sad, I expected it to work. I have no idea what else could be causing this error. We might need help from people more familiar with plugins...
Ah ! I'm at work too ! Do you speak french by any chance ? Your name has a french ring to it... I'm a native french speaker, that's what got me wondering.
When you export a project as a website you have the "Minify script" option activated by default.
I must have done something which breaks the code when it gets minified. Maybe you could try exporting with the option ticked off to see if it works ?
So the plugin works in test mode but fails when exported ? Could it have anything to do with a minifying process of any sort ?
Member since 4 Jul, 2011