LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

what are variables?

Root / Programming Questions / [.]

🔒
zagg2000Created:
Ok, so, i've been having issues coding a grid for my game, how do i accurately count how many BG's i have placed? BGCROOD 0,TX,TY,1 OUT BX,BY

when you place one, put INC BGCOUNT. when you remove one, put DEC BGCOUNT.

when you place one, put INC BGCOUNT. when you remove one, put DEC BGCOUNT.
Theres no code for BGCOUNT

there is no code for BGCOUNT. it's a seperate count that you put the code in for, so you can check the amount of bgtiles you placed.

Sorry, im confused. please give an example.

I won't because it is too simple. In the code that puts a bgtile down, add INC BGCOUNT. In the code that removes a bgtile, add DEC BGCOUNT. The BGCOUNT variable will tell how many bgtiles are placed.

Do i have to make BGCOUNT a variable? like BGCOUNT =0 or somthing?

Ok.i see what your trying to say. you dont understand. the way i have it coded is very Difficult to understand. therefore, i will give you a code as to what i need help with. if you figure it out, please give me the key. thanks.

9KKK4EKS

Didn't think you where smart enough to Do it anyway.

I forgot about this for a while, but now you're insulting me. I guess it will stay forgotten.

To bad for you, but someone NICE, and SMART, helped me. So, nothing is forgotten.