Current Selection Function for game and editor?
Posted: Sat Mar 05, 2011 7:14 pm
So I'm working on my level editor now that I'm back. I've come across a problem that has been itching my brain, I need your guys' help to scratch it. I came across this problem in the past and gave up with it and did something else. However, I've become a much better programmer with all of your help and other sources, and now realize one way that seems logical to go about it.
I need some sort of function that will return what objects are selected in my level editor, so that I can alter the desired object. When you click on an object it will load all of the "current object"-'s data and allow you to change it in the 'Objects' window. Now, previously I was a lot more like, (immature 13 year old talk) "Hey guys HAHAHA give me cod3s too make my program work for me HAHA since I don't know how!!". So in the long run I never actually solved my problem. SOO... Now... Maybe some feedback on this theory and SUGGESTIONS on better directions would be greatly appreciated.
Give each object class a boolean value that changes depending on if the object is selected. Depending on this value, preform tasks such as, show a collision box, add it to the group of editable objects, highlight it in someway to show that it's selected.
Any help would be great :D.
Pepper out.
I need some sort of function that will return what objects are selected in my level editor, so that I can alter the desired object. When you click on an object it will load all of the "current object"-'s data and allow you to change it in the 'Objects' window. Now, previously I was a lot more like, (immature 13 year old talk) "Hey guys HAHAHA give me cod3s too make my program work for me HAHA since I don't know how!!". So in the long run I never actually solved my problem. SOO... Now... Maybe some feedback on this theory and SUGGESTIONS on better directions would be greatly appreciated.
Give each object class a boolean value that changes depending on if the object is selected. Depending on this value, preform tasks such as, show a collision box, add it to the group of editable objects, highlight it in someway to show that it's selected.
Any help would be great :D.
Pepper out.