Page 1 of 2
labyrinth game
Posted: Mon Mar 25, 2013 4:48 am
by orbinv
How could i start off with a labyrinth game. creating the walls and moving functions. how would i go about this. thanks in advance.
Re: labyrinth game
Posted: Wed Mar 27, 2013 3:38 am
by orbinv
any help would really be appreciated
Re: labyrinth game
Posted: Wed Mar 27, 2013 3:49 am
by Simon
Is this looking top down, like looking at rats in a maze or 3D like walking in a maze?
Simon
Re: labyrinth game
Posted: Wed Mar 27, 2013 6:04 am
by orbinv
thanks for the reply i was thinking a mixture of both if its possible
Re: labyrinth game
Posted: Wed Mar 27, 2013 7:16 am
by Simon
Here is a stack to get you started:
- maze.zip
- LC 5.x
- (8.07 KiB) Downloaded 562 times
It's a very very simple implementation of the top down maze, all the code is in the ball script.
This is not the best way (didn't spend much time building it) but something for you to play with.
Simon
Re: labyrinth game
Posted: Wed Mar 27, 2013 3:28 pm
by orbinv
thank you ill let you know how it works out. Is it possible to make the walls on the maze 3d or more realistic?
Re: labyrinth game
Posted: Wed Mar 27, 2013 9:21 pm
by Simon
Hi orbinv,
You will see that there are only 2 objects in the stack, the graphic ball and the image maze. The maze can be any image but making it 3D is up to you. Once you have your 3D image you can just replace the image I have there and adjust the script. Note that your image must have transparency for the paths, this is how the program "knows" where the walls are.
if intersect(graphic "ball", image "maze",255) then
Have you looked up "intersect" in the dictionary? Do you understand what that 255 stands for?
Simon
Re: labyrinth game
Posted: Wed Mar 27, 2013 9:49 pm
by orbinv
will i have to create my own 3d images? lets say if i wanted different levels i would have to create multiple 3d images for this? How would I go about making the image transparent? Yes I have looked it up but I'm still not to sure how that works. Sorry I'm new to this.
Re: labyrinth game
Posted: Wed Mar 27, 2013 10:45 pm
by Simon
Hi orbinv,
Yes, you will have to create your own 3D images. You can use Googles SketchUp it's free:
http://www.sketchup.com/
There are good video's there to show you what is involved.
Transparency (alpha) you'll just have to learn about.
But the answer I presented isn't the only way of making a maze game there can be many more.
Simon
Re: labyrinth game
Posted: Wed Mar 27, 2013 10:53 pm
by orbinv
Could you describe a few if you dont mind and thanks for the advice. Im making some progress.
Re: labyrinth game
Posted: Wed Mar 27, 2013 10:55 pm
by Simon
no, not me, you got the one...
keep learning
Simon
Re: labyrinth game
Posted: Wed Mar 27, 2013 11:20 pm
by orbinv
thanks by the way for all the help.
Re: labyrinth game
Posted: Thu Mar 28, 2013 5:10 am
by orbinv
Simon wrote:no, not me, you got the one...
keep learning
Simon
One more question how do i apply the 3d image to the main stack?
Re: labyrinth game
Posted: Thu Mar 28, 2013 5:13 am
by Simon
From the file menu:
File>Import as control>Image
Simon
Re: labyrinth game
Posted: Thu Mar 28, 2013 5:16 am
by orbinv
Simon wrote:From the file menu:
File>Import as control>Image
Simon
my 3d file is .skp , do i need to convert this file to anything specifically?