Welcome Guest [Log In] [Register]



Add Reply
need help with ds_grids; for the FOW
Topic Started: Jan 18 2007, 09:12 PM (289 Views)
fsd
3a4

ok im using Pheonix101's FOW engine and i need to keep track of what is explored and what is not
i am trying to use a ds_grid
i added this code in the creation of the FOW system
ds_grid_add(FOW_grid,x,y,explored)

i added this for the update script for the system
ds_grid_add(FOW_grid,x,y,explored)

then i put (in the building placer

if ds_grid_get(FOW_grid,x,y) = explored
{
i added the building code here

}

the problem is that it will let me build wether i explored there or not
"mmmmm i love the internet. every time i go to a website i get a cookie HOW AWESOME IS THAT!" - Quote from me


"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." - Albert Einstein
"Imagination is more important than knowledge."- Albert Einstein
Offline Profile Quote Post Goto Top
 
Big J
Member Avatar
2

Moved to "Questions and Answers" from "Game Maker Creations".
I create and modify my own code... I'm advanced AI!
Big J's Domain
I am an Posted Image in the GM Quiz!
Listen to what the robot has to say... CLICK HERE.
(Macromedia Flash Player 8 required)
GM7 Posted Image is now available!
Super Mario Pong v2.0
Offline Profile Quote Post Goto Top
 
AKH
Member Avatar

Moderators
Moved to "Mod Trash" because ifelt like it and this forum is dead, so no one is stopping me from abusing my position.
CLICK THIS NOW ITS AMAZING
Offline Profile Quote Post Goto Top
 
fsd
3a4

I moved it back. I will try to redo the post but it was a long one and took me a while to do the first time.

edit: i found the post somewhere
"mmmmm i love the internet. every time i go to a website i get a cookie HOW AWESOME IS THAT!" - Quote from me


"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." - Albert Einstein
"Imagination is more important than knowledge."- Albert Einstein
Offline Profile Quote Post Goto Top
 
burnt effigy
Member Avatar


moved to trash because why have a double post?
Posted Image
Current Project:
Stretching the limits of Game Maker Lite
Offline Profile Quote Post Goto Top
 
fsd
3a4

Moved it back because there is no double post (if there is I dont see one). All I see is a link to the mod trash from when AKH moved it.
"mmmmm i love the internet. every time i go to a website i get a cookie HOW AWESOME IS THAT!" - Quote from me


"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." - Albert Einstein
"Imagination is more important than knowledge."- Albert Einstein
Offline Profile Quote Post Goto Top
 
ari_aaron
Member Avatar
1a4
Root Administrator
And I deleted the move thing. You need to go to the Mod CP to do that.

My msn: Posted Image
Posted Image
If anyone wants GMail or Windows Live Messenger invites, PM me!
Offline Profile Quote Post Goto Top
 
fsd
3a4

So it is possible. I never new how. Thanks for telling me.
"mmmmm i love the internet. every time i go to a website i get a cookie HOW AWESOME IS THAT!" - Quote from me


"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." - Albert Einstein
"Imagination is more important than knowledge."- Albert Einstein
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Questions and Answers · Next Topic »
Add Reply


Theme designed by Sith of Outline