the.sand's Recent Forum Activity

  • dop2000

    I have done that and the screen still doesn't move.

  • Hi all

    I have created a camera sprite and set it so every tick it lerp(Self.X, Sprite.X, 0.03), and lerp(Self.Y, Sprite.Y-150, 0.03).

    This does follow my other sprite smoothly, but thats all...it doesn't actually work as a camera and move the screen with the sprite as it should.

    I followed a tutorial to achieve this but nowhere in the tutorial does it mention a step where you actually set the camera or tell construct which sprite is the camera and how to make it actually follow it.

    Can anyone help me out?

    Thanks so much!

    Tagged:

  • That did it dop2000

    You are the best kind of person!

    Thanks again so much!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks AllanR

    When I try that Construct can't find the local variables.

    I have attached an image for reference.

    Thanks for your help!

  • Thanks again dop2000 you are a saint!

    I'm trying to switch up my config to match what you have but it won't let me create a "set value" sub event below the local variables.

    How did you do that?

  • dop2000 Thanks so much for the response!

    I've tried this local variable method and it seems like it should work but for some reason it isn't.

    The problem seems to be with "Sprite Set size to (w/2,h/2)". For some reason this just makes the sprite disappear.

    I know that the local variables are being set correctly though because if I do "Sprite Set size to (w-16,h-16)", the Sprite doesn't disappear and reduces from 32px to 16px correctly.

    Unfortunately I need the size to continue to reduce on each key press which your method should achieve.

    Any idea why the sprite might be disappearing?

    I have attached an image as reference.

    Thanks for your help!

  • Hi all,

    I am creating a game wherein pressing "Z" decreases the sprite size by half and then creates a duplicate of itself. Essentially being split in two.

    I have been able to reduce the size of the sprite by half but when I create the new sprite object it is set to the initial size of the sprite, not the updated half sized sprite.

    Is there any way to set the sprite that is being created to the current size of the sprite it is a copy of?

    I am trying to use the "create object" function for this but what would really be more useful is "duplicate object" or something here.

    Anyway any help is greatly appreciated.

    Thanks!

    Tagged:

  • I am trying to set my game up so every time the player presses "Z" the sprite size is reduced by half.

    So if the initial sprite size is 64px and they press "Z", it should become 32px. If they press it again the size should become 16px, then 8px, then 4px, etc. etc.

    The issue is that when I set scale-0.5 on keypress it reduces from 64px to 32px, but when I press it again it does not reduce again.

    I'm assuming it is only reducing it once because on the second press the argument is looking at the initial size and saying "okay it is already half the size" so it doesn't continue to reduce.

    My problem is that I want it to reduce the CURRENT size by half, not the initial size.

    Hopefully this makes sense.

    Thanks in advance for the help!

    Tagged:

the.sand's avatar

the.sand

Member since 12 Aug, 2020

None one is following the.sand yet!

Trophy Case

  • 4-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • RTFM Read the fabulous manual
  • Email Verified

Progress

7/44
How to earn trophies