Pantallons's Recent Forum Activity

  • Thanks for your reply ASHLEY.

    I just thought a moving sprite would use up more memory, as the system not only needs to redraw the sprite image, but also calculate it's movement too. But thanks for the clarification, it's always good to learn something new.

  • Thanks for the replies!

    Ashley, I'm not sure the manual entry you pointed me to actually answers my question, or perhaps I just misunderstood.

    I'm trying to work out if moving a sprite (containing 20 images) across the screen will use up more memory than moving a sprite with just one.

    Perhaps it'd help to provide a use case scenario: I have a a collection of sprites and each contains an animation of around 10 images. This animation only needs to play when the sprite is touched.

    As each sprite move around the screen, their movement appears to be rather clunky. So I wondered if it would provide smoother performance, if I used a sprite with a single image, to move around the screen. Then destroy the single image sprite and replace it with another sprite that contains the animation, when needed.

    Thanks again for your help.

  • Hi Guys,

    I would like to know if the memory usage is different if you move a sprite with multiple images across the screen compared with a sprite with just one image.

    Thank you kindly.

  • Okay I've set up a family and I can now easily bring bottom sprite to top of the stack, thank you

  • Thanks

    I think I may have explained my issue badly. All of the sprites are already on the same layer, and each sprite is different (so not many copies of one sprite).

    I want to be able to separately pick up each of the sprites with the mouse. The problem is, because they?re stacked directly on top of each other, I can only select the sprite at the top of the stack. That's why I need a way to push a button and change the sprites z-order, so that I can make an individual sprite come to the top of the stack. Can using families help me with this?

    Thanks again for your help.

  • Hi shinkan,

    Thanks for your reply. I want to bring individual sprites to the top of the layer 1 at a time. So each time I press a button the sprite at the bottom of the pile comes to the top. Do you know how I could do that?

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi Everyone,

    I have 10 sprites all of the same size, and with the same X,Y position. I want to be able to push a button and bring the sprite at the bottom of the layer up to the top, and I'd like to be able to do this for all ten. I know sprites have a z-order on layers, but can't find a way to check on individual sprites z-order position. I was thinking I'd probably need to keep track of each sprites position using variables, but I'm not sure exactly how to do that.

    Can somebody let me know how I might achieve this?

    Thanks

Pantallons's avatar

Pantallons

Member since 12 Sep, 2012

None one is following Pantallons yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies