Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

Nausea

Member Since 25 Nov 2012
Offline Last Active May 03 2013 05:33 PM
-----

Posts I've Made

In Topic: UI: move-able windows (z-order)

29 March 2013 - 07:27 AM

Instead of storing the window pointers in a vector, store them in the list. Mouse testing is then done from top to bottom, and drawing is done from bottom to top. Moving a window to the top requires that the window be removed and added to the front of the list.

On an unrelated note, the code you posted is somewhat hard to follow because of all the nested code blocks. Try to make it more flat. For example,


if(!WindowList[i]->WindowItemList[itemnum]->GetActive()){continue;}else{/*do stuff*/}
is equivalent to
if(!WindowList[i]->WindowItemList[itemnum]->GetActive())    continue;/*do stuff*/

Thank you so much for your answer :) I will try to make this work. And thanks for your critique on my code blocks.

edit: I got it working thanks to you :) Happy times!

In Topic: UI: move-able windows (z-order)

29 March 2013 - 06:49 AM

Thank you for your answer. Could you go into more detail on the "list of indices" thing? Sorry my first language is not English so I don't fully understand what you mean by it.

Especially the "indices" part :P


In Topic: Art skill learning?

23 March 2013 - 04:38 PM

How to learn art is a pretty big question. If you want to learn by "teaching yourself" then I suggest getting books on the basics.

And when you feel a bit more comfortable with your drawing skills maybe you could check out the gnomon workshop. 

They have very good dvds, pretty expensive but very good. Tho you should probably not jump right into them if you lack the basics.

 

But most importantly: practice, practice and more practice like with most skills in life.

 

Hope this helps in some way.

 

Oh, and a school is good because it forces you to practice, you can't slack because then you wont pass the tests.


In Topic: Game: Health regeneration?

02 March 2013 - 04:27 PM

With computers today it's probably faster to use floating-point than do all the shifting required for fixed-point numbers.

Just be aware that you can never use == or != with floating-point numbers as they are always imprecise by a little bit.

I did change my health and regen to float instead of int. :) 


In Topic: Game: Health regeneration?

02 March 2013 - 06:31 AM

Thank you all for your input. I finally with your help got it working. :)


PARTNERS