labyrinth game

Creating Games? Developing something for fun?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

orbinv
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 11
Joined: Fri Mar 15, 2013 8:02 pm

labyrinth game

Post 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.
orbinv
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 11
Joined: Fri Mar 15, 2013 8:02 pm

Re: labyrinth game

Post by orbinv »

any help would really be appreciated
Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: labyrinth game

Post by Simon »

Is this looking top down, like looking at rats in a maze or 3D like walking in a maze?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
orbinv
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 11
Joined: Fri Mar 15, 2013 8:02 pm

Re: labyrinth game

Post by orbinv »

thanks for the reply i was thinking a mixture of both if its possible
Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: labyrinth game

Post by Simon »

Here is a stack to get you started:
maze.zip
LC 5.x
(8.07 KiB) Downloaded 651 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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
orbinv
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 11
Joined: Fri Mar 15, 2013 8:02 pm

Re: labyrinth game

Post 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?
Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: labyrinth game

Post 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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
orbinv
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 11
Joined: Fri Mar 15, 2013 8:02 pm

Re: labyrinth game

Post 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.
Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: labyrinth game

Post 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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
orbinv
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 11
Joined: Fri Mar 15, 2013 8:02 pm

Re: labyrinth game

Post by orbinv »

Could you describe a few if you dont mind and thanks for the advice. Im making some progress.
Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: labyrinth game

Post by Simon »

no, not me, you got the one...
keep learning

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
orbinv
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 11
Joined: Fri Mar 15, 2013 8:02 pm

Re: labyrinth game

Post by orbinv »

thanks by the way for all the help.
orbinv
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 11
Joined: Fri Mar 15, 2013 8:02 pm

Re: labyrinth game

Post 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?
Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: labyrinth game

Post by Simon »

From the file menu:
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!
orbinv
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 11
Joined: Fri Mar 15, 2013 8:02 pm

Re: labyrinth game

Post 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?
Post Reply