I Wanna Community

Fangames => Game Design => Programming Questions => Topic started by: kilgour22 on February 27, 2015, 09:05:32 PM

Title: Object/Sprite Placement
Post by: kilgour22 on February 27, 2015, 09:05:32 PM
Purely out of curiosity, what are the methods employed by fangame creators to place objects with different sprites? For example, spike1 and spike2 are both spike sprites with the same orientation. Do people make two different objects for spike1 and spike2 or do people make tilesets for spike1 and spike2?

Both ways seem very tedious to me, with the first way requiring time spent to create a bunch of different objects for each sprite and the second way requiring time to spent on placing sprites to match up perfectly with the objects (such as the block parent object); which would be especially grating if you stray from the boring 32x32 snap grid.

Am I wrong for employing this method?

https://prntscr.com/6aqvvu

Do other people use this or something similar to this as a way to have different sprites without having to make additional objects or place both objects AND tiles? Is there a better way than having a creation code which can be added onto as I need more sprites for the same polygon?
Title: Re: Object/Sprite Placement
Post by: Sudnep on February 28, 2015, 04:27:50 AM
Your way is actually fine. I usually do the same thing but use a controller object depending on the stage to switch the sprites of the default spikes on room start since I have so much other stuff going on but it's basically the same way you do it.

Either way I think both ways are much more efficient at tilting spikes since their such a common asset used in these games it's worth just having code dedicated to changing by some special method.
Title: Re: Object/Sprite Placement
Post by: kilgour22 on February 28, 2015, 02:03:41 PM
Your way is actually fine. I usually do the same thing but use a controller object depending on the stage to switch the sprites of the default spikes on room start since I have so much other stuff going on but it's basically the same way you do it.

Either way I think both ways are much more efficient at tilting spikes since their such a common asset used in these games it's worth just having code dedicated to changing by some special method.
I thought your way sounded much better in the long run. I'm guessing you did something like this?
https://prntscr.com/6b0fke
Title: Re: Object/Sprite Placement
Post by: Sudnep on February 28, 2015, 03:41:11 PM
Your way is actually fine. I usually do the same thing but use a controller object depending on the stage to switch the sprites of the default spikes on room start since I have so much other stuff going on but it's basically the same way you do it.

Either way I think both ways are much more efficient at tilting spikes since their such a common asset used in these games it's worth just having code dedicated to changing by some special method.
I thought your way sounded much better in the long run. I'm guessing you did something like this?
https://prntscr.com/6b0fke
Pretty much, yeah.