TheWyrm's Forum Posts

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

  • What do you want it to do in the pipe? Roll through it?

  • So I use the same sprite font on two layouts. I set the text in an external event sheet and include it in both. Therefore, saving duplication.

    However, the text is set in on one screen but not the other.

    Is there some kind of weird bug where set text gets locked to an instance of a sprite font?

  • There are other combinations of things you could try:

    Fullscreen scaling: High or Low

    Use high DPI display: Yes or no

    Sampling: Linear or point

    I would recommend trying it with low, no, point. Then see what happens.

    Note: I have never tried what you're trying so this is a shot in the dark

  • Cheers, I had just found it, but thanks for the confirmation

  • I was wondering if there was an on resume event which is tied to pausing on unfocus?

  • ok, partially solved. I found the rex_date plugin that allows me to do date.UnixTimestamp. So I just need to subtract one from the other to get a difference in seconds.

    So now I need to work out how to tell if the player has minimized the game on a mobile platform so I know when to call it.

    Any ideas?

  • Basically I want to take a time stamp. Close the game. Then when the game next opens I want to check if so much time has elapsed.

    Any ideas how I can do this?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Nevermind... I accidentally deleted all my global variables. Which will probably be the cause...

  • So for some reason I have just started to get this error message when starting the game. The game has been working fine with clay.io until today. Is this a known issue with clay.io being offline or something?

    Javascript error!

    TypeError: Clay.Player is undefined

    http://localhost:50000/Clay_plugin.js, line 1192 (col undefined)

    This is either a bug in Construct 2 or a problem in a third party plugin or behavior - please report it to the developer!

  • You would need to destroy the truck and spawn an instance of an empty truck at the same position and the player based on the truck position.

  • No you can't. Imagine if whenever you browsed the internet your desktop got filled up with random page icons. That wouldn't be good

  • You can try testing it in debug mode in the browser and turn on 'pause on unfocus' to see if it does the same thing?