How do I code weapon killing with leveling up?
Jan 21 2011, 8:41 pm
How do I make it so that you can use weapons to kill enemies but also level up your character in the process?
Jan 21 2011, 9:34 pm
Well, how would you think of it as a programmer?
You would need to create a "weapon" class, perhaps:
Then how would you program an attack verb?
Perhaps using variables that when you have the steel blade equipped it raises your attack?
You should try looking over some Demos over at the Developers Resources, examine the demos, and try writing your own system based off of the demos. Don't simply COPY / PASTE, you won't learn anything that way.
Copyright © 2013 BYOND. All rights reserved.
Terms of Service