I've asked this before but this is more advanced - Map makin

Non-platform specific questions.

I've asked this before but this is more advanced - Map makin

Postby Hblade » Wed Mar 31, 2010 12:20 pm

Alright, I'm here again with yet another question :P. I think I ask more questions then a walrus wonders why it lives in the water but breathes air.

Alright, now for the question. How can I use a tool that can make maps, (got that part... I think), but how can I like, say if I made a map... with dimensions with that of uh.... 64 tiles width, and 56 tiles high, how could I prevent the view from leaving the max, and minimum map width / height, also, how would I load a new map without having to use the moveto function?

If I could do this it'd make game making that much easier, and that less stressfull.

My next question is, how the heck can I get my tile editor to not place another tile of the same layer on top of each other, for example, I have the ground... Okay, I plant the ground. I click again, and theres another ground on the same layer, or say I have an edge, or a rock, and I place it on layer 1, instead of deleting the ground under it, it plants it over that. I want to only be able to plant things on layer 1 if I'm on layer 2, or 3. Sorta like how RPG maker works.

Sound hard? If you can help me I'll credit :D Since I'm not making any profit from the games I make, I can't really award you with any cash, so uh, you'll just be rewarded with a point I guess :P.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: I've asked this before but this is more advanced - Map m

Postby skydereign » Wed Mar 31, 2010 11:46 pm

For view control, you already know the tile width, so you know the dimensions. Using this you can prevent the view from passing it, from either your player, view actor, or whatever controls the views movements... Maybe I don't get what you are asking as in the actual screen movement you would just use the dimensions.

The other question depends on how you are setting it up, mainly the layers. If it is a 3d array, then you would have a variable determining which layer you are currently on, so when you click, it uses that to place the tile. Before it does that it would check if that sub of the array has a value already, if it does you would either have it replace it or not place the current tile.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: I've asked this before but this is more advanced - Map m

Postby Hblade » Thu Apr 01, 2010 12:11 am

Thanks, Sky, but I made my question wrong I guess. I understand how to do it, but what I dont understand is how to do it, you know what I mean? I know the concept, but I dont know anything on how to code it.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: I've asked this before but this is more advanced - Map m

Postby Bee-Ant » Thu Apr 01, 2010 3:00 pm

What if you just post your current demo or email us, we can fix them faster than post the code one by one here...
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: I've asked this before but this is more advanced - Map m

Postby Hblade » Thu Apr 01, 2010 4:20 pm

Well my files got wiped... so screw it :P
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron