labyrinth game
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
labyrinth game
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
any help would really be appreciated
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: labyrinth game
Is this looking top down, like looking at rats in a maze or 3D like walking in a maze?
Simon
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: labyrinth game
thanks for the reply i was thinking a mixture of both if its possible
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: labyrinth game
Here is a stack to get you started:
This is not the best way (didn't spend much time building it) but something for you to play with.
Simon
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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: labyrinth game
thank you ill let you know how it works out. Is it possible to make the walls on the maze 3d or more realistic?
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: labyrinth game
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
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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: labyrinth game
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.
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: labyrinth game
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
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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: labyrinth game
Could you describe a few if you dont mind and thanks for the advice. Im making some progress.
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: labyrinth game
no, not me, you got the one...
keep learning
Simon
keep learning
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: labyrinth game
thanks by the way for all the help.
Re: labyrinth game
One more question how do i apply the 3d image to the main stack?Simon wrote:no, not me, you got the one...
keep learning
Simon
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: labyrinth game
From the file menu:
File>Import as control>Image
Simon
File>Import as control>Image
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: labyrinth game
my 3d file is .skp , do i need to convert this file to anything specifically?Simon wrote:From the file menu:
File>Import as control>Image
Simon