Search found 15 matches
- Mon Jul 19, 2010 4:28 pm
- Forum: Programming Discussion
- Topic: Weapon data in XML Files?
- Replies: 4
- Views: 1012
Weapon data in XML Files?
For a while, I've wanted to create a weapon system using XML files but I'm not sure how to do so. So instead of that, for now, I've decided to just keep doing things the way I have been by hardcoding all the weapon data. What I'd like to know is which way is better to go: Have a weapon class and hav...
- Tue Jul 13, 2010 5:06 pm
- Forum: Programming Discussion
- Topic: Constructors
- Replies: 5
- Views: 469
Constructors
Hey, I was just wondering if there is an easier way to do something like this: So what I want to do is have player classes (classes that the player can choose such as in a RPG. E.g. Archer, Warrior, etc.) and have the information for those player classes automatically be assigned to the player like ...
- Mon Jul 05, 2010 6:27 pm
- Forum: Programming Discussion
- Topic: Help Involving Vectors/Class Inheritance
- Replies: 13
- Views: 1126
Re: Help Involving Vectors/Class Inheritance
Thanks more but can someone explain to me the reason for the pointers and or other stuff you added. What exactly does it do?
- Mon Jul 05, 2010 2:47 pm
- Forum: Programming Discussion
- Topic: Help Involving Vectors/Class Inheritance
- Replies: 13
- Views: 1126
Re: Help Involving Vectors/Class Inheritance
Works perfectly MV, thanks a lot! To think, I was making it a lot more complicated than it called for.
- Mon Jul 05, 2010 12:18 pm
- Forum: Programming Discussion
- Topic: Help Involving Vectors/Class Inheritance
- Replies: 13
- Views: 1126
Re: Help Involving Vectors/Class Inheritance
I have no idea except that I thought that in order for pCurrWeap to equal something, It would have to equal a Weapon variableexample;. I'm not sure what I should give it to? Should I declare a variable in my weapon class to take it?
- Mon Jul 05, 2010 10:44 am
- Forum: Programming Discussion
- Topic: Help Involving Vectors/Class Inheritance
- Replies: 13
- Views: 1126
Re: Help Involving Vectors/Class Inheritance
Thanks for replying. Two hours after doing my initial post, I figured it out and then two hours after that I ran into a problem again. Hopefully, I can use your code to help figure out my problem. I'll re-explain my problem just in case others would like to give it a try but what you have looks good...
- Sun Jul 04, 2010 10:23 pm
- Forum: Programming Discussion
- Topic: Help Involving Vectors/Class Inheritance
- Replies: 13
- Views: 1126
Help Involving Vectors/Class Inheritance
Hello guys. So, I have a problem involving something that is over my head which inevitably has forced me to ask questions. I have a player class and a weapon class and for a while I've been trying to figure out how to make the first tie in with the latter using class inheritance. I've solved that bu...
- Wed Jul 22, 2009 7:31 pm
- Forum: Programming Discussion
- Topic: Class vs Struct
- Replies: 3
- Views: 577
Class vs Struct
I am currently learning the use of Classes and Structures and I just had to ask what the differences and similarities between the two are. When should classes be used and when should structures be used in a program. Can they even be compared? Remeber I am just learning C++ so if you can explain the ...
- Sun Mar 08, 2009 10:00 pm
- Forum: Programming Discussion
- Topic: Tile map editor in BlitzPlus. Need help with collision
- Replies: 6
- Views: 1363
Re: Tile map editor in BlitzPlus. Need help with collision
Sorry to blow your spot but I know for a fact that you never wrote that code. That being said if you meant that you did write the code, otherwise sorry. I just don't like seeing other people taking credit for other people's work especially when all they've done was just scratched out certain areas i...
- Thu Feb 19, 2009 11:58 pm
- Forum: Programming Discussion
- Topic: Code Help (ARCE)
- Replies: 17
- Views: 2174
Re: Code Help (ARCE)
So I know It's been a while but can I still expect a tutorial Arce? Guess I should have posted right away.
- Thu Feb 05, 2009 2:30 pm
- Forum: Programming Discussion
- Topic: Code Help (ARCE)
- Replies: 17
- Views: 2174
Re: Code Help (ARCE)
Thanks a lot man, just the code I need to work off of. I'd love to see the tut and I want to thank ya for taking out the time. I'll keep working tonight.
- Wed Feb 04, 2009 12:04 am
- Forum: Programming Discussion
- Topic: Code Help (ARCE)
- Replies: 17
- Views: 2174
Re: Code Help (ARCE)
So I just sat down, trying to figure out the problem and gave the code a couple tweaks. Unfortunately, I've come to realize that the whole advlog system (which was horrible and terribly written) must be wiped and redone probably as a proper TYPE or array (nah...types are better). I will have to work...
- Tue Feb 03, 2009 5:05 pm
- Forum: Programming Discussion
- Topic: Code Help (ARCE)
- Replies: 17
- Views: 2174
Re: Code Help (ARCE)
Well, I tried that and I thought It would work too but what happens instead is: Say logline2$ read "Nice bunch of chaps.", logline3$ read "Hi, name's charlie. Fancy meeting you here!" and logline4$ read "Elysian Shadows ROCK!". Using your suggestion and what I've done a...
- Tue Feb 03, 2009 1:15 pm
- Forum: Programming Discussion
- Topic: Code Help (ARCE)
- Replies: 17
- Views: 2174
Re: Code Help (ARCE)
Oh no problem, thanks for the reply though and since you have suggestions...any thing from you would be great.
- Sun Feb 01, 2009 4:40 pm
- Forum: Programming Discussion
- Topic: Code Help (ARCE)
- Replies: 17
- Views: 2174
Code Help (ARCE)
Don't mean to come with my every coding problems but I was wondering if someone with a bit of experience, preferably ARCE, in Blitz Plus could give me a hand. Well, I'm trying to create an adventure log (a text prototype at the moment) and I'm trying to create a scrolling effect. For some reason wha...