Peit
Newcomer
Hello everyone
I've made the switch from VB6 to vb.NET recently, and i really like it.
I was not really familiar with classes in vb6, but now im using them i like it.
But, now im making a game, map editor first, and came to the part of objects in game, like buttons, doors, portals ect.
Ive made classes for these, everything with its properties and all.
But these objects need to work together, like when you push the button, the door opens. But the button does not only open doors! I want to make that it can trigger any event from any another object.
How would i make this? And how would i implement this in my map editor? Cause when i want to set up an action upon lets say pressing a button, i want to be able so select one of the objects available in the game (not too hard), but then i want to create a list with its functions available.
How could i program this?
Lets say i have an array with the objects, and i know i want to open a door by pressing a button
How would i store in the button that its function is to open a door?
Brrrrr, im confused
Thanks!
I've made the switch from VB6 to vb.NET recently, and i really like it.
I was not really familiar with classes in vb6, but now im using them i like it.
But, now im making a game, map editor first, and came to the part of objects in game, like buttons, doors, portals ect.
Ive made classes for these, everything with its properties and all.
But these objects need to work together, like when you push the button, the door opens. But the button does not only open doors! I want to make that it can trigger any event from any another object.
How would i make this? And how would i implement this in my map editor? Cause when i want to set up an action upon lets say pressing a button, i want to be able so select one of the objects available in the game (not too hard), but then i want to create a list with its functions available.
How could i program this?
Lets say i have an array with the objects, and i know i want to open a door by pressing a button
How would i store in the button that its function is to open a door?
Brrrrr, im confused
Thanks!