P
Pseudo
Guest
Hello GM Community...
The humble bundle finally got me to start on a long-time desire of mine; building a game. I've programmed for years, but nothing in the realm of gaming and, obviously then, never in GML/GM:Studio.
My first game I wanted to try and make was a "Sim Tower" like game.. It was one of my favorites growing up... a simple 2D game.
If you're not familiar, the basic concept I'm aiming for is: You start with enough money to build a floor or two. Each floor will have 3-5 tenants (Either a residential, commercial, office, or (in the future) special tenant)
I've made a tiny skeleton of this game, and was able to make a menu and buttons. However, I have not determined the best way to "draw" the tower.
Right now, I'm thinking of players "buying" an entire floor at a time. This floor would look like it's "under construction" until the player picks their tenant slots for the floor.
Right now, it looks like I only need 1 object for floors, which I'll spawn multiple instances of and stack. This leads me to my first question: What functions do I need to look at to make this happen?
I've created a global variable "floors" to keep track of how may exist, but I'm not sure how to 1) Spawn the floor and make it appear in the right X/Y location, and 2) place objects inside of it. (I'm still thinking through if the tenants should be all one object, or one object per type)
I'd love to have some feedback on how to go about designing this -- I know there's no perfect way, and there's assumptions made, but any commentary would help me in my google-fu I'm sure...
So far:
- I did see instance_create, but that seems more for throw-away objects (not objects I want to persist, and eventually save, and may benefit from some form of "naming"
- I do see there's another thread that shows an issue with "stacking" objects, I'm concerned how that might effect my design.
Would love to discuss!
-Pseudo
The humble bundle finally got me to start on a long-time desire of mine; building a game. I've programmed for years, but nothing in the realm of gaming and, obviously then, never in GML/GM:Studio.
My first game I wanted to try and make was a "Sim Tower" like game.. It was one of my favorites growing up... a simple 2D game.
If you're not familiar, the basic concept I'm aiming for is: You start with enough money to build a floor or two. Each floor will have 3-5 tenants (Either a residential, commercial, office, or (in the future) special tenant)
I've made a tiny skeleton of this game, and was able to make a menu and buttons. However, I have not determined the best way to "draw" the tower.
Right now, I'm thinking of players "buying" an entire floor at a time. This floor would look like it's "under construction" until the player picks their tenant slots for the floor.
Right now, it looks like I only need 1 object for floors, which I'll spawn multiple instances of and stack. This leads me to my first question: What functions do I need to look at to make this happen?
I've created a global variable "floors" to keep track of how may exist, but I'm not sure how to 1) Spawn the floor and make it appear in the right X/Y location, and 2) place objects inside of it. (I'm still thinking through if the tenants should be all one object, or one object per type)
I'd love to have some feedback on how to go about designing this -- I know there's no perfect way, and there's assumptions made, but any commentary would help me in my google-fu I'm sure...
So far:
- I did see instance_create, but that seems more for throw-away objects (not objects I want to persist, and eventually save, and may benefit from some form of "naming"
- I do see there's another thread that shows an issue with "stacking" objects, I'm concerned how that might effect my design.
Would love to discuss!
-Pseudo