Jump to content

bdb

Members
  • Posts

    2
  • Joined

  • Last visited

bdb's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. That's awesome! I had read about containers and planned to use them, but you made me realize the 'duh' moment here: Containers are for object grouping, big and small. Thank you - I'm going to run into a bunch of conceptual knowledge gaps, and hopefully I won't bug you about all of them! Quick response was really helpful. I'll certainly check out your demo and thank you for that link as well.
  2. Hi All, I'm a new developer and have been enjoying PIXI so far! I am new to most aspects of game and web dev as well, and I was glad to see an active forum like this one. If I have a game object composed of multiple sprites which all use the same x/y position, can I link the position values of the sprites to the x/y I am tracking in my wrapper object? I'm looking for a way to have the sprite position values reference the same memory location as a global x and y value, such that updating the global value would intrinsically update the position of a number of sprites. It looks like the sprite x and y values are getter/setter functions, so at that point I got stuck determining if this would be possible. For now I wrote a setX and setY function that loop through all the associated sprites and set their position values, and I was wondering if this is an efficient way to solve the problem? I'm trying to be cautious about processing overhead and want to understand best practices for any operations that are going to take place on every update scan. Thanks!
×
×
  • Create New...