Mirage Source

Free ORPG making software.
It is currently Wed Dec 24, 2025 4:39 pm

All times are UTC


Search found 13 matches
Search these results:

Author Message

 Forum: Resources   Topic: Something like CTF

 Post subject: Re: Something like CTF
Posted: Thu Jul 12, 2007 2:56 pm 

Replies: 30
Views: 23277


I think he was pointing out that Dave said "Hard" and you said "Easy". If he was, then Dave was saying it's hard for us to give code, not that it was something hard to program. We could add this code in 10 minutes or so, but we're not going to add the code to our sources to test...

 Forum: Resources   Topic: Something like CTF

 Post subject: Re: Something like CTF
Posted: Thu Jul 12, 2007 1:01 pm 

Replies: 30
Views: 23277


Put all of this in modThinkAboutIt If AddBltFlagsToGameLoop = true then Goto NextStep End If Exit Sub NextStep: For each flag in Map CreateRects Blt Next Okay still not understanding what are you trying to do the only thing yopur doing is getting me confused morethen i already am. Okay using the bl...

 Forum: Resources   Topic: Something like CTF

 Post subject: Re: Something like CTF
Posted: Thu Jul 12, 2007 10:30 am 

Replies: 30
Views: 23277


I'm a beginner in coding VB6 so if people want to give me hints or just help me a bit I would be thankfull. A tutorial would be nice but i can't ask that much. The code I posted will probably work if you put it in Sub bltTile, which is in modGameLogic. That is of course assuming that your flags are...

 Forum: Resources   Topic: Something like CTF

 Post subject: Re: Something like CTF
Posted: Thu Jul 12, 2007 2:23 am 

Replies: 30
Views: 23277


Yes, but I didn't say it was only 6 tiles across. I was just demonstrating how the tiles are numbered. And I'm pretty sure it starts with 0, not 1. Precrid, that second bit of code wasn't code. It was just a demonstration of tile order. That code probably wont work 100%, as it was just a suggestion...

 Forum: Resources   Topic: Something like CTF

 Post subject: Re: Something like CTF
Posted: Thu Jul 12, 2007 12:28 am 

Replies: 30
Views: 23277


I believe it's something like this: If Map(GetPlayerMap(MyIndex)).Tile(GetPlayerX(MyIndex), GetPlayerY(MyIndex)).Type = TILE_TYPE_FLAG Then If GetPlayerClass(MyIndex) = 0 Then Map(GetPlayerMap(Index)).Tile(GetPlayerX(MyIndex), GetPlayerY(MyIndex)).Anim = Class0Flag End If If GetPlayerClass(MyIndex)...

 Forum: Resources   Topic: Something like CTF

 Post subject: Re: Something like CTF
Posted: Tue Jul 10, 2007 10:08 am 

Replies: 30
Views: 23277


Okay i think i need this code to change flag sprite If Map(GetPlayerMap(Index)).Tile(GetPlayerX(Index), GetPlayerY(Index)).Type = TILE_TYPE_FLAG Then If GetPlayerClass(1) (here must the sprite code that i don't know) End If If Map(GetPlayerMap(Index)).Tile(GetPlayerX(Index), GetPlayerY(Index)).Type ...

 Forum: Resources   Topic: Something like CTF

 Post subject: Re: Something like CTF
Posted: Mon Jul 09, 2007 9:46 pm 

Replies: 30
Views: 23277


He's only told you where new surfaces are created. If you don't even know that, I doubt you'll be able to get the main code done for the system. Okay i don't know anythign im so dumb that even a baby is smarter etc etc etc are you happy now are you ready to tell me some usefull stuff then only crac...

 Forum: Resources   Topic: Something like CTF

 Post subject: Re: Something like CTF
Posted: Mon Jul 09, 2007 9:29 pm 

Replies: 30
Views: 23277


If you're using a seperate picture file for flags, you'll need to load them into a surface the same way the other graphics are in modDirectX. To make it switch, you'll just do something like, "If player.x = flag.x And player.y = flag.y then..." And to change color, you could just have to ...

 Forum: Resources   Topic: Something like CTF

 Post subject: Re: Something like CTF
Posted: Mon Jul 09, 2007 9:24 pm 

Replies: 30
Views: 23277


Okay i think your thinking im sitting here and only let other people work for me i really try but its not workinh i did these things: Added at ' Tile consants <did this also server side Public Const TILE_TYPE_FLAG = 21 Added at ' Blit out attribs if in editor If .Type = TILE_TYPE_FLAG Then Call Draw...

 Forum: Resources   Topic: Something like CTF

 Post subject: Re: Something like CTF
Posted: Mon Jul 09, 2007 8:49 pm 

Replies: 30
Views: 23277


Put all of this in modThinkAboutIt If AddBltFlagsToGameLoop = true then Goto NextStep End If Exit Sub NextStep: For each flag in Map CreateRects Blt Next Okay still not understanding what are you trying to do the only thing yopur doing is getting me confused morethen i already am. Okay using the bl...

 Forum: Resources   Topic: Something like CTF

 Post subject: Re: Something like CTF
Posted: Mon Jul 09, 2007 6:44 pm 

Replies: 30
Views: 23277


Follow the other attribute code, copying an attribute (like block) and modify the stuff to act as a flag. That's the thing with Mirage Source, a lot of the code is already there to copy. Okay i requested a tutrial and i get some answer that i already know well let say what i understand and what i n...

 Forum: Resources   Topic: Something like CTF

 Post subject: Re: Something like CTF
Posted: Sun Jul 08, 2007 6:21 pm 

Replies: 30
Views: 23277


You'd probably want to make a flag attribute (similar to block) that can take the value of anyone hitting it. Then just say, "if it's this value, it's this color draw this picture" Thanks for helping but like i said i am a beginner in VB6 and a beginner already knows these things: The pro...

 Forum: Resources   Topic: Something like CTF

 Post subject: Something like CTF
Posted: Fri Jul 06, 2007 8:19 pm 

Replies: 30
Views: 23277


Hi all, Does someone know how i can make sometething like this: A class that hits a flag on a map will change the flag to the color(changing sprite to blue flag) blue for example. I'm a beginner in coding VB6 so if people want to give me hints or just help me a bit I would be thankfull. A tutorial w...
Sort by:  
Page 1 of 1 [ Search found 13 matches ]


All times are UTC


Jump to:  
Powered by phpBB® Forum Software © phpBB Group