|
Post by Xenith on Aug 18, 2004 12:56:49 GMT -5
i'm just wondering, i have three characters ingame at the same time, and i have a sword object and i was wondering if there was a way to make it so when they attack they could all use it but i'm not sure how to do this, and another thing i think it would be possible to have armor sort of like on diablo, that when it is put on it becomes visible on your character and i'm having the same trouble as the sword with this one
edit:
one last thing i already have a ssaving system but at the save screen i need it to say some info like the guys amount of time played location saved and his level, kinda like in final fantasy or something the reason i'm having trouble with this is becuz there are 4 save slots thanks again
|
|
|
Post by IsmAvatar on Aug 19, 2004 13:36:43 GMT -5
for the sword and armour, you just have to modify the origin to align with the character, and then every step, jump to the character's x and y coordinates.
For the save, there's a number of ways to do this. 1 way is to simply pull it out of the save file (very difficult to do). Another way is to write it in with the save file, using binary writing/reading (moderately easy, and convenient), but that would require you remove the data before loading it. A third way is to write it to an external source, such as an ini file, a txt file, the registry, or a binary file (to prevent tampering).
|
|
|
Post by Xenithnotloggedin on Aug 19, 2004 13:51:30 GMT -5
yeah i got that to work for one character but how would i get it to work if i had 3 players and how would i do it without making 1 weapon specially for them, but instead one object for all?
as for the saving your gonna need to help me out cuz i don't have a clue about binary and stuff, thanks
|
|
|
Post by IsmAvatar on Aug 20, 2004 12:29:00 GMT -5
use a local variable that belongs to the item that declares its owner.
And I mentioned binary as only 1 of the alternatives. You could have chosen any of the alternatives (which you have not made a choice)
|
|
|
Post by Xenith not logged on Aug 20, 2004 18:18:47 GMT -5
yeah, but its not an item thats already on the map ,its an item that appears when i press the attack button
ok but the first one you mentioned you said was hard, the binary i don't know and the one where it's written in text means that it could be edited, but i guess i'll do that one, so what do i need to do to do this?
|
|
|
Post by dwmitch on Sept 13, 2004 15:33:37 GMT -5
For the armor, you could just have an array storing stock bodies (bodies without armor), one for each character, and an array storing the stock heads. Then you could have another array storing the armors, visible accessories (if you want to go that far, although having sprites for rings would be pointless), and helmets (for the helmets that show hair, you may need one for each character).
Then you could have a script in the draw event that draws the sprites for the armor, helmets, and accessories equipped.
I'm currently working on the same thing, and if you need an example and are willing to abide by a liscensing agreement (I know we're a community, but we all need various services, so an exchange would be fair) I'll PM you a link.
As a semi-unrelated side note, I know I never got that jumping example for you, but I'll be more reliable on this one, as this is part of my own project, whereas the jumping isn't.
|
|
|
Post by Xenith on Sept 13, 2004 16:22:52 GMT -5
what kind of exchange are you looking for? i think i have an idea of what i'll do and i'm hoping i'll have a demo by the end of the month i'm currently working on sprites for this purpose, and the quicker i get them done the quicker i'll release the demo
|
|
|
Post by dwmitch on Sept 14, 2004 4:05:31 GMT -5
Well, if I provided any of the scripts I would request ad space. Plain text link at first, upgraded to a banner at the top of your site when I get the artwork done.
If you have any problems let me know and I'll send you some commented scripts.
|
|
|
Post by Xenith on Sept 14, 2004 19:37:48 GMT -5
umm are you talking about my game, or a website? cuz i don't have a website, and although i appreciate the help, i think i could handle it on my own now, but thanks
|
|
|
Post by IsmAvatar on Sept 15, 2004 14:00:43 GMT -5
I think he's making suggestions about getting a website.
Ads are always one way to afford it, but that just about defeats the purpose of hosting it on a paid server. Just host it on a free server. It comes with the ads and all.
|
|