Magistross's Recent Forum Activity

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

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

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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 ?

Magistross's avatar

Magistross

Member since 4 Jul, 2011

Twitter
Magistross has 14 followers

Trophy Case

  • 13-Year Club
  • Entrepreneur Sold something in the asset store
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies