AmpedRobot's Forum Posts

  • Dt also doesn't work anymore for other applications like self.x+100*dt for example and R139 seems to be the new stable release.

    It's not the file as I tried it in 3 different new files.

  • Yup.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The far decimal points like beyond four decimal places just constantly keeps changing on a sprite that is stationary on x and just moving in the y direction.

    Maybe that's normal.

  • Well I'm in Release 139 64-bit, Windows Vista and every time I add that, it stops scrolling.

    Works fine otherwise.

  • Well, I setup scroll right and left hooked up to keys and you can only set the scroll rate for scrollx in pixels like +3 or -3.

    Won't let you do the typical*dt application to make it system independent.

  • I noticed you can't combine scrollx and delta time for some reason, only specific numbers.

    Is the scroll rate system dependent?

  • I hooked up one of the stars' positions to a text object to show its X position in the Vertical Space Shooter template.

    Interestingly, even though it's supposed to be scrolling down only with the bullet behavior, the text object shows the really far decimal places of the X position constantly fluctuating.

    Shouldn't it be stationary, if it looks stationary?

  • Was fun.

  • Hey, I'm working on something similar.

    What would be the solution? :)

    Basically, trying to set up a repeating flag (global variable) trip every X pixels to trigger a set of events once.

    Problem is I'm not a math whiz.

    It would work off scrollx.

    So basically every X pixels scrollx rolls right for example, the same flag goes off.

    Think it could be done with Trigger Once, then resetting the global variable flag trip to off at the end.

    Just having trouble conceptualizing the math/formula.

  • Will give it a shot.

    Thanks!

  • I finally got the player ship to rotate properly even after scrolling past the original viewable window, but for some reason Mouse.AbsoluteX or Y, same with Touch.AbsoluteX or Y is not behaving properly when I go to full screen mode.

    Is there a way to go full screen without the scaling modes?

    They are doing something weird and the ship starts to rotate sporadically when playing with the mouse.

    I have tried restarting the browser and software several times, but always the same weird effect.

    Otherwise it works beautifully.

    Interestingly it works great in the Integer Scale mode and there's actually no scrolling artifacting.

  • Never mind.

    Figured it out.

  • Mistyped the second link and won't let me edit post.

    Global Variable Example

  • Hi, everyone.

    Alright.

    I have a weird problem setting up the infinite scroll left and right for the Vertical Space Shooter template.

    I tried it 3 different ways and nothing works.

    See 2 capex here:

    scrollx example

    This one utilizes scrollx.

    Global variable instead of scrollx

    This one utilizes a global variable instead of scrollx.

    The scroll does work.

    The problem are the player angles.

    The player sprite no longer orients properly towards Mouse.X and Mouse.Y or Touch.X and Touch. Y unless one points the cursor really far away, within the original window boundaries.

    I really need help with this.

    The documentation on scrollx and scrolly is very scant in the manual.

  • Actually, never mind.

    Just figured it out.

    For some reason checking for the player sprite angle works better than checking if the system is between player and touch angle which jumps all over the place on same rotation based on mouse distance from player sprite.

    No idea if checking for system between angles is the same as checking if the player sprite is between angles but the latter appears to work better (and make sense).