the.sand's Forum Posts

  • Thanks AllanR

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

    I have attached an image for reference.

    Thanks for your help!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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: