|
Post by manu128k on Jul 3, 2018 16:15:35 GMT
Hello guys, What should I do if there is an object that would be repeated multiple times in the same screen. You can't put it more than once, right? And I wouldn't like making clones of the object and wasting memory, as it is a scarce resource...
Any thoughts?
Thanks
|
|
|
Post by alessandro on Jul 4, 2018 14:11:17 GMT
Use collectable sprites instead of objects, a là Manic Miner. Objects are really only needed in adventure-style games, where you need each one of them for specific purposes.
|
|
|
Post by manu128k on Jul 4, 2018 16:40:20 GMT
I'm using objects instead of sprites because I've reached the sprites limit already, so that is not an option for me. Thanks anyway Alessandro.
|
|
|
Post by lukebord1 on Jul 6, 2018 13:34:10 GMT
What should I do if there is an object that would be repeated multiple times in the same screen Each object is pointed specifically to a screen including its x/y coordinates, in order to let the detection when the player passes over. So it isn't possible to point the same object multiple times in the map; a memory "waste" in this case is necessary, you have to crate more objects with the same design. There's a trick to let an object reappear elsewhere (same room or different room) once collected, that is "virtually" moving the player to the new location (you'll need a couple of coordinates to use as player's x/y mirrors), put down the object and restoring the player x/y coordinates to the original values. This operation will be "invisible" so you won't see the player movement, just the same object when you'll enter the new location.
|
|
|
Post by manu128k on Jul 6, 2018 15:42:12 GMT
Ok, I'll be repeating objects then...
Thanks for the tip, Lukebord1
|
|
|
Post by Jonathan Cauldwell on Jul 12, 2018 15:23:06 GMT
One other option might be to upgrade your project to version 0.7 and use collectable blocks
|
|
|
Post by manu128k on Aug 28, 2018 21:38:29 GMT
Thanks Jonathan, I still find myself more comfortable with the pure spectrum version, but I want to get used to the windows version also, as it is more versatile.
|
|