[quote="Arima":1q2sovcy]There's no real reason for a feature like that. You can achieve the same effect using multiple sprites. That's exactly what containers are made for. [/quote:1q2sovcy]yes, you're right, for little and medium (middle?) game. But for very very big game, I think it's a very usefull feature
[quote:1q2sovcy]How else would you tell the multiple images what to do? I don't know how GM does it, but since a sprite is basically an image anyway...[/quote:1q2sovcy]This feature is very interesting to have an easy and good organisation in your cap.
In GM, you can load several (multiple) sprites in a unique Object and draw the multiples sprites (of this unique object) at the same time/together[/edit]. If you want, you could create a game with only 1 object, and thousand sprites in it, with all the events for each sprite.
In fact, we don't do that, but, it's easier to "manage" and organise 15-30 objects in a game than 150/300 objects and more
.I will try to explain (sorry because, I'm not very good in english, so if it's not easy to understand, please tell me ).
To explain, I have to show you all the calculs I have made for my game, to manage and organise the objects and the sprites.In my game (and in other big game), we can have :
- 500/600 Mo of graphics (sprite : characters, fx, UI, enemies, NPC, grounds, trees, plants, objects...)
- in a map (layout) I will have at least for the sprites : 4000 (characters)+150 (vegetations, house, pnj..) + 1280 sprites (enemies)+1000(UI+FX) = 6430 sprites differents to organise for a map. The calcul for the sprites:
A lot of sprites will be reused, but not all. The sprites characters + UI/fx will reused. Not the ennemies, and not necessary the vegetations/house/pnj.
And I don't talk about the customisation :( (the ability for the player to change his cloth, sword...)
- 1 player : walk, sword combat, magic, dead, other animation > 5*8 directions*20 images = 800 sprites
- 4 friends : 4*5*8*20 = 3200 sprites
- enemies : 4 differents by map- 2 animation (walk, fight) : 4*2*8*20 = 1280
- vegetations/house/pnj bu different univers : 10rocks + 10trees+10plantes+10 flowers+15grounds+1background (tiled)+10house+40little accessories/objects+5fx (fire, smoke..) +4pnj+others objects (actions, teleport, doors, fontain..).. >> between 110 and 150 sprites by univers
The differents "univers" are : 5 forests, 2 deserts, 2 moutains, 2swamp (marsh), 3 plains, 6 city, 3 prairies...... > 30 univers differents
(My map are 5000*4000. And I think I will have 50 to 100 maps. Somes maps will be in the same "univers")
So I will have 125*30 sprites for the vegetations/house/pnj > 125*30 = 3750 sprites.
- The objects : I can use of course 1 object for several sprites
: The objects :
The map :
- 1 object player + 1 object shadow + 6 objects equipement + 1 object for the pathfinding (collision player)
- 1 object friend + 1 object for the pathfinding (collision)
- 1 object "PET" (animal) + 1 object for the pathfinding (collision)
- 1 object enemi (for all the enemies in the map) + 1 object for the pathfinding (collision)
- 1 object tree-rocks-plante-flower-house-other objects (decor-stage set (?)) : no dynamics objects
- 1 object for the tiled background
- 1 object for the grounds (placed over the tiled background) ?
- 5 or more objects "action" (teleport, safe (box), door, HP fontain, magic object..)
- 1 object NPC -PNJ
- 5 objects FX (fire, smoke..) and dynamic FX (Magic spells)
- 1 object for the block collision (invisible)
- 1 object for the target of the player
- the objects "drop", items.. : 4 differents
- UI for the enemies (health bar, info bar) : 3 objects
- UI for the PNJ : 4 objects
- 1 object for the GUI (player)
- 1 object by menu > 10 objects (inventory, spell book, quest book, option menu, pet menu, friend menu...)
- 10 objects for the button of the menus (I don't want to use the button object) : button ok, close, radio, bar...
- 1 object for the health bar-magic bar, xp bar
- icone objects (spells, sword used..) : 2 objects
- 1 object Cursor
>> 60/70 objects to organise for a layout.
+ the objects that I have forgotten, because we forget always some things.
+ the other objects to organise (text...) which aren't no sprite object, but we need to organise it too in our .cap :).
So, I think I will have 60/100 Objects by map to organise.
So, I prefer to have to organise 30-50 objects than 100 objects. It's easier.
With the "multiple sprites in one object" feature, I think I could have only 40-60 objects to organise in my .cap, and it would be more cool for me
It's like to have folders with global variable. When we use only a fexw globale variable (10-20) in a game, it's not a problem. But, when we use a lot of global variable (50-100), it become really dificult to have a good organisation.
I hope I have been clear
Thank you for help me