Fresh Start

Place for questions and answers for all newcomers and new coders. This is a free for all forum, no question is too stupid and to noob.
Post Reply
User avatar
Epiales
Posts: 1119
Joined: Thu Aug 15, 2013 1:38 am

Fresh Start

Post by Epiales »

Okay all, I'm about to the spot where I want to start from complete scratch on a game. I've learned a lot, and much, much more to go. But I've come far ;). I just have too many bugs in this one. Too many things not working properly, and I've scrambled the code so much that it's almost impossible to work with. So I think a fresh start is the way to go. So!

When coding the new game, what is the best way to always have the current stats update as you perform your actions? On this game, I would attack something, but the hitpoints wouldn't update when I did??

I'm going to work with three different divs, or should I use tables? The actions of everything will all happen in the middle div, so I will always need the information on the right and left to always update AS I perform those actions in the center.

Thanks!
Nothing fancy, but a work in progress!

http://gameplaytoday.net
User avatar
Epiales
Posts: 1119
Joined: Thu Aug 15, 2013 1:38 am

Re: Fresh Start

Post by Epiales »

Okay, while thinking, can I basically use divs, but use css to place those divs at a certain location? Then no matter where I put the divs, they would stay in that location anyway, because they would have it in the css that way. This way, I can put the things that needed to be updated AFTER the middle part where all the actions will take place?

And I probably won't start over completely. Probably just wade through the mess I've made with the code and redo it. Will be awhile before any new updates are made though.

I was wanting to try and do mysqli, but tried for over an hour to do a simple login script with it and it just wouldn't work LOL, so forget that :oops: :oops:

Now looking at my current game, it doesn't matter where I place the stats. Before the center div or after the center div, it does not refresh stats until you either attack again and your hp goes down from the previous hit, or until you refresh. Just doesn't make sense.
Nothing fancy, but a work in progress!

http://gameplaytoday.net
Post Reply

Return to “Beginner Help and Support”