• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Custom Pathing, Sorta a logic question

Status
Not open for further replies.
Level 12
Joined
Feb 23, 2008
Messages
587
I Am planing on makeing Corn maze.

Bascily you are first person and you walk throw a randomly made corn maze.

I figured out how to do it..mostly, but one of the harder parts i am still sorta stumped on...

orn Maze:
A First Person Game where you walk throw a randomly made corn maze.

How i plan on doing it:

So I make a grid with in array. (i did the array like that because i only know gui, and the gui wont let you have arrays like TempArray[x,y].)
I have start points, End points
And 5 random points.

Then fill it in randomly making sure each time i do, that its still path able to all 5 random points, and end points.

So i need a path checker thingy...every time i try to place some corn, or make it unpathable in a spot. and the path checker checks if the from start if it can get to all the points, Only going UP LEFT DOWN RIGHT.

It has to do with being more and more options and keeping track of them all...But i think....my head hurts lol

I cant have it hug the wall left or right...for this, because that method only works on maze thats done. Let me think some more...

Look at pictures it should be array of 400. my bad
after you click on teh picture right click view image on it, and it will get bigger, and then click once to zoom and it will look good. or dl it.


Edit: I think i solved it...But its most likey not the most efficient way to do it...But then agein its just basic math the computer should be able to do it the way i got thought up...pretty fast... It involes makeing 2 full arrays of 400 and a temp varible and running throw most of them every time i try to place a pice...But eh what ever works...
 

Attachments

  • Corn1.GIF
    Corn1.GIF
    52.7 KB · Views: 3,153
  • Corn2.GIF
    Corn2.GIF
    61.9 KB · Views: 6,115
Last edited:
Status
Not open for further replies.
Top