Bituser's Forum Posts

  • 9 posts
  • Thanks. I found that the layers on the level don't have parallax enabled. This seems to affect the objects on the global layout.

  • I've now implemented a HUD system similar to what is described here: scirra.com/forum/forum_posts.asp .Layers and still parallax and anchoring is used however the jittering has come back. Any particular reason as to why?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks guys. Got it sorted. t turns out my "Return to original level" was setup wrong. I'm glad I know about the globals now!

  • Hi,

    I'm attempting to implement a global HUD into my game suggested here: scirra.com/forum/forum_posts.asp

    I'm trying to load the HUD automatically at the start of each level. It is probably easiest to explain in program form

    <font face="Courier New, Courier, mono">

    GLOBALEVENTS:

         HudLoaded = 0

         IF HudLoaded == 0

              GOTO LOADHUD              

    LEVEL 1:

        IMPORT GLOBALEVENTS

         ON LEVEL_END

              TURN HUD OFF

              

    LOADHUD:

         HudLoaded = 1

         GOTO LEVEL 1

    </font>

    Obviously, this creates a loop. How can I create a global variable that is not reset every time the event sheet it is on is loaded? One solution would be to load globals at the beginning of the game, however this won't work if I am debugging.

    How should I approach this?

  • Thanks Imchucho and LittleStain. Such an elegant and simple solution.

  • I have a HUD on my game which needs to overlay the current viewport. I have an event set so every tick the HUD is set to be at ViewportTop, ViewportLeft. However, as I move along they follow properly, but it seems to jitter a lot. Is there a reason for this?

  • Thanks, it worked perfectly!

  • Thanks GeometriX. Just wondering, is there any way to find the UID of the object that is being overlapped? I use one object for the platform by just using new instances.

  • Hi,

    I have the following:

    • Sprite, platformer
    • Tiled Background, solid

    Problem is, if I rotate the tiled background (they act as platforms). The sprite does not rotate to that angle when walking along the platform.

    I thought about finding the UID of the background at y-5 from the sprite and then rotating it to the same angle of the background. However, I can't find anything for "Find UID at Point".

    What are some other ways of solving this problem?

    I've uploaded a simple diagram:

    <img src="http://i42.tinypic.com/2ik2ihg.jpg" border="0" />

  • 9 posts