Fog of war

Game Editor comments and discussion.

Fog of war

Postby 4erv' » Fri Aug 08, 2008 10:00 am

Hey guys, have you got any ideas how to make fog of war? :mrgreen:
Example:
Attachments
fog_of_war.png
fog of war in Starcraft
Gold Basketball 2008 - the first basketball game made with game editor.

User avatar
4erv'
 
Posts: 188
Joined: Sat Jul 07, 2007 10:52 am
Location: in Recycle Bin
Score: 10 Give a positive score

Re: Fog of war

Postby 4erv' » Fri Aug 08, 2008 11:05 am

Already figured it out :D
Gold Basketball 2008 - the first basketball game made with game editor.

User avatar
4erv'
 
Posts: 188
Joined: Sat Jul 07, 2007 10:52 am
Location: in Recycle Bin
Score: 10 Give a positive score

Re: Fog of war

Postby j2graves » Fri Aug 22, 2008 2:36 am

this will be great for people who wanna make strategy games! =D
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: Fog of war

Postby 4erv' » Tue Aug 26, 2008 3:37 pm

Well.. my way to make fog of war isn't very good. It's like deleting the squares on collision. It works good, but the squares are big, and looks strange. I've tried to make the squares smaller, but when i make them clone -> array to the all map, the game is running VERY slow.
Is there any other way, to make fog of war? :?
Gold Basketball 2008 - the first basketball game made with game editor.

User avatar
4erv'
 
Posts: 188
Joined: Sat Jul 07, 2007 10:52 am
Location: in Recycle Bin
Score: 10 Give a positive score

Re: Fog of war

Postby BlarghNRawr » Wed Aug 27, 2008 2:08 am

what do you mean?
"fog of war"?
items dissapearing untill they're in ur line of sight (age of empires), or everything just darker, but you can still see it...
:D
Download Game Music
current projects:
Bold! ?% Started mechanics
Unnamed puzzle game 60% --i need a name!--
User avatar
BlarghNRawr
 
Posts: 767
Joined: Wed Jun 25, 2008 12:36 am
Location: Not using G-E anymore. Now using Source SDK.
Score: 27 Give a positive score

Re: Fog of war

Postby feral » Wed Aug 27, 2008 2:09 am

i have a few ideas, but as i have never played a game with "fog of war effect". I sort of need a screen shot of the way you currently have it working to get a better idea..

I am also assuming this is only for a top down 2D map game ?

A few quick ideas tho would be to

1. use RGB to set existing "tiles' to Black - you can then fade in to full color in stages if needed ( not sure how it would work on tiles as i have never used them.. but i will look into

2. ensure only those items on screen are being drawn ( to speed it up)

but I really need a better idea of the effect you want..?

eg: do you want a real "mapped" fog of war, or just a circle of sight around your immediate area ? which is what the original screen shot seems to show..
User avatar
feral
 
Posts: 308
Joined: Sun Mar 16, 2008 6:27 am
Score: 47 Give a positive score

Re: Fog of war

Postby 4erv' » Thu Aug 28, 2008 11:37 am

feral wrote:real "mapped" fog of war
??? :oops:
what do you mean? :? :oops:
Gold Basketball 2008 - the first basketball game made with game editor.

User avatar
4erv'
 
Posts: 188
Joined: Sat Jul 07, 2007 10:52 am
Location: in Recycle Bin
Score: 10 Give a positive score

Re: Fog of war

Postby feral » Thu Aug 28, 2008 11:17 pm

4erv' wrote:
feral wrote:real "mapped" fog of war
??? :oops:
what do you mean? :? :oops:


by mapped , i mean if you are looking down on the map some areas will be blacked out ( if you haven't yet explored them) and others will be in full detail if you have - or sometimes "greyed" out if you haven't fully explored them or haven't for a while.

essentially I mean the "fog" will be in different patches of the map rather then just a large circle around the character.. think of quake/doom style games where the automap won't show you places you haven't been.

sorry i don't quite get the idea of what you want, I haven't played starcraft.

attached is a "rough" "hand-drawn" concept
left side "mapped" - right side, simple "fog"
fogofwar.jpg

click to enlarge pic

(screengrab borrowed from hblades RPG demo ( I hope that is ok..)
User avatar
feral
 
Posts: 308
Joined: Sun Mar 16, 2008 6:27 am
Score: 47 Give a positive score

Re: Fog of war

Postby 4erv' » Fri Aug 29, 2008 9:42 am

yes, i want mapped, but i can't make it look smooth. :?
Heres my version:
Strategy Template (with fog of war).zip
jimmynewguy's strategy template
(3.85 MiB) Downloaded 144 times

Let me know if it not working, because i dont have game-editor right now. :(
Gold Basketball 2008 - the first basketball game made with game editor.

User avatar
4erv'
 
Posts: 188
Joined: Sat Jul 07, 2007 10:52 am
Location: in Recycle Bin
Score: 10 Give a positive score

Re: Fog of war

Postby feral » Sat Aug 30, 2008 5:07 am

4erv' wrote:yes, i want mapped, but i can't make it look smooth. :?
Heres my version:


here is an exe ( use cursor keys to move)

Not complete nor well coded, i just need to know if this is what you mean.. ? it doesn't yet scroll the view, but is easy done.
fogdemo3.zip
(886.71 KiB) Downloaded 133 times

fogdemo3.jpg

click to enlarge
User avatar
feral
 
Posts: 308
Joined: Sun Mar 16, 2008 6:27 am
Score: 47 Give a positive score

Re: Fog of war

Postby feral » Sat Aug 30, 2008 6:01 am

and an much easier way ...( i should have tho9ught of this first ..gugh)

anyhow replace your fog.png with the fogcopy.png attached here
fog copy.png
fog copy.png (4.02 KiB) Viewed 1954 times
User avatar
feral
 
Posts: 308
Joined: Sun Mar 16, 2008 6:27 am
Score: 47 Give a positive score

Re: Fog of war

Postby 4erv' » Sun Aug 31, 2008 1:35 pm

Thanks! I will try it when i will get my pc back. :D
Gold Basketball 2008 - the first basketball game made with game editor.

User avatar
4erv'
 
Posts: 188
Joined: Sat Jul 07, 2007 10:52 am
Location: in Recycle Bin
Score: 10 Give a positive score

Re: Fog of war

Postby 4erv' » Thu Sep 04, 2008 6:12 pm

OMG it was so easy! :oops:
Looks alot better! Thank you very much! :D
Gold Basketball 2008 - the first basketball game made with game editor.

User avatar
4erv'
 
Posts: 188
Joined: Sat Jul 07, 2007 10:52 am
Location: in Recycle Bin
Score: 10 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron