TheWyrm's Recent Forum Activity

  • Hey guys,

    I have the following clay.io stuff working:

    Login,

    Facebook posts,

    Highscores.

    This was done by including the clay.io plugin files into the exported cocoonjs zip.

    However, tweets aren't working? Anybody have and fixed this problem? I'm asking here, since I posted at clay.io but there doesnt seem to be any community response.

    Note: I may also consider moving away from clay.io. Is there another plugin that offers facebook posts, tweets and highscore tables?

  • I made a new variable called GlobalFullVersion and used that instead. It must not like the variable name GlobalUnlocked.

    Very strange

  • I understand you get a NaN when setting a string to a number. However, I am not doing that. The only time the value is set is when the global is declared with a default value of 0. What is interesting is the second time I run the layout, i.e. title screen to game back to title screen, It is no longer a NaN and set to 0.

    The capx was something I created instead of providing my whole project. It wasn't the problem I thought it was and that capx proved it. After debugging I found that the last global variable in my layout was returning a NaN. On the second time the layout ran it returned 0.

  • ...and before you ask the only time the value is set is when it is created i.e. Global number variable1 = 0

  • Hi guys,

    My layout starts and creates a bunch of global variables. The last of which is instead of setting to 0 is being set to NaN.

    Anybody know what this is and how to stop it?

  • So I found out the problem. Its nothing to do with the sprite font. Its to do with a global variable for some reason being set as NaN instead of 0. I'll start a new thread for it.

  • It's a strange one. It just starts working after I flick between the layers a few time.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I created this one.

    http://www.FilesOverMiles.com/07e4235ae ... a9bb45ed2e

    However, as you can see it works. So I must be doing something stupid.

  • I basically have a count down shared between layouts. There is nothing but the include in layouts eventsheet to call the SetTextEventSheet.

    Within the SetTextEventSheet I call set text every second.

  • So I have the following simplified setup: Layout1, Layout2, Layout1Eventsheet, Layout2Eventsheet, SetTextEventSheet.

    Layout1Eventsheet contains the specific mechanics for Layout1.

    Layout2Eventsheet contains the specific mechanics for Layout2.

    SetTextEventSheet sets text for SpriteFont1.

    Layout1 and Layout2 contain an instance of SpriteFont1.

    Layout1Eventsheet and Layout2Eventsheet include the event sheet SetTextEventSheet.

    The reason why I do this is so I can avoid duplication of events. Write it once change it once.

  • So what I would do is make the pipe out of three sprites. Create two line sprites to represent the sides of the pipe. Then overlay a decorative sprite of the pipe over them. Then tell the ball to ignore physics of the decorative sprite.

  • So confirm the first layout I start works the other doesn't. I think this is a bug in C2.

TheWyrm's avatar

TheWyrm

Member since 9 May, 2014

None one is following TheWyrm yet!

Connect with TheWyrm

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies