Page 1 of 2 1 2 >
Topic Options
#125064 - 01/18/09 06:13 PM Having problems with fastloops and arrays
RickyRombo


Registered: 03/05/08
Posts: 178
Loc: Heaven or Hell, it changes fro...
I have a maze making game that I'm trying to get to save your maze. So far I've just been working on the "right" pieces. I recently found that it saves differently every time. Hopefully it's something easy that someone can solve. I posted my problems with more detail here:
http://theclickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=124315#Post124315


Attachments
Maze Maker Beta.mfa (12 downloads)
Description: Most recent build:




Edited by RickyRombo (01/18/09 06:14 PM)
_________________________
I am game-making crazy - and a little crazy besides

rickyrombo.co.nr HOORAY! Give it a go.

Top
#125081 - 01/18/09 09:39 PM Re: Having problems with fastloops and arrays [Re: RickyRombo]
_LB


Registered: 06/07/07
Posts: 887
Loc: Richardson, Texas, America.
Since there can only be one piece per square just save each array value to a number 1-10 to represent the piece that is there.
_________________________
Check the awsome games at http://ragdollsoft.com/
~Multimedia Fusion 2 Standard User~
My Site - LB-Stuff
-LB

Top
#125091 - 01/18/09 11:25 PM Re: Having problems with fastloops and arrays [Re: _LB]
RickyRombo


Registered: 03/05/08
Posts: 178
Loc: Heaven or Hell, it changes fro...
I don't think I get how to do that - how would i tell where the piece would go? Alterable values? How would I load them?

Really liking the idea. Please just help me follow what you had in mind.


Edited by RickyRombo (01/18/09 11:32 PM)
_________________________
I am game-making crazy - and a little crazy besides

rickyrombo.co.nr HOORAY! Give it a go.

Top
#125105 - Yesterday at 06:19 AM Re: Having problems with fastloops and arrays [Re: RickyRombo]
Raylax


Registered: 11/29/07
Posts: 382
Originally Posted By: RickyRombo
I don't think I get how to do that - how would i tell where the piece would go? Alterable values? How would I load them?

Really liking the idea. Please just help me follow what you had in mind.


Make a 2D array that has the same number of rows and columns as the tiles in your maze. In each cell, store a number from 1-10, depending on the tile in the corresponding place in the maze.

So if the top-left tile is a solid wall, set cell 0,0 to 1. If the next one is a right-angled corridor, set cell 1,0 to 2. And etc. A different number for each type of tile
_________________________
http://raylax.weebly.com

Top
#125123 - Yesterday at 10:18 AM Re: Having problems with fastloops and arrays [Re: Raylax]
nivram


Registered: 07/11/06
Posts: 427
Loc: Bandon, OR
If you would like, check the World Creator on my website. It has an editor for building your world, and play screen for character placement. It uses an array with fastloops and a string parser. Maybey ou can get some hints from the coding and documentation.

Open source.
_________________________
A decision making process is binary.

MMF2 Examples and games (open source).
http://www.castles-of-britain.com/mmf2.htm

Top
#125125 - Yesterday at 10:33 AM Re: Having problems with fastloops and arrays [Re: Raylax]
RickyRombo


Registered: 03/05/08
Posts: 178
Loc: Heaven or Hell, it changes fro...
I get that part of it, what really has me puzzled is how am I going to load it. I'm thinking I would say...

*OnLoop("load")
+CurrentXY("Array")=1
-Create ("right")
-("right") Set X to CurrentXPos("Array")x(the size of my tiles)
- " " Y " CurrentYPos " "
_________________________
I am game-making crazy - and a little crazy besides

rickyrombo.co.nr HOORAY! Give it a go.

Top
#125141 - Yesterday at 11:22 AM Re: Having problems with fastloops and arrays [Re: RickyRombo]
nivram


Registered: 07/11/06
Posts: 427
Loc: Bandon, OR
In the creator there is also a loading routine.
_________________________
A decision making process is binary.

MMF2 Examples and games (open source).
http://www.castles-of-britain.com/mmf2.htm

Top
#125145 - Yesterday at 11:25 AM Re: Having problems with fastloops and arrays [Re: RickyRombo]
_LB


Registered: 06/07/07
Posts: 887
Loc: Richardson, Texas, America.
OK, I made this as an example for you but for some reason the loading isn't working right, I think I know why but it usually doesn't happen...


Attachments
Maze Maker Beta[1].mfa (9 downloads)
Description: The loading part I think sets all the pices to the very last tile??? I'm not sure...


_________________________
Check the awsome games at http://ragdollsoft.com/
~Multimedia Fusion 2 Standard User~
My Site - LB-Stuff
-LB

Top
#125160 - Yesterday at 11:55 AM Re: Having problems with fastloops and arrays [Re: _LB]
RickyRombo


Registered: 03/05/08
Posts: 178
Loc: Heaven or Hell, it changes fro...
Ok I looked at that and it seems a little harder than what I had going, though I'd rather do that so I don't have to try and figure out whats wrong with mine. I think it isn't loading from the right cells, that by using the fastloops to tell where to load from, its moving diagonal or something. I'm not sure though, what does everyone else think?
_________________________
I am game-making crazy - and a little crazy besides

rickyrombo.co.nr HOORAY! Give it a go.

Top
#125161 - Yesterday at 11:56 AM Re: Having problems with fastloops and arrays [Re: nivram]
RickyRombo


Registered: 03/05/08
Posts: 178
Loc: Heaven or Hell, it changes fro...
Originally Posted By: nivram
In the creator there is also a loading routine.

Huh? What do you mean?
_________________________
I am game-making crazy - and a little crazy besides

rickyrombo.co.nr HOORAY! Give it a go.

Top
Page 1 of 2 1 2 >


Site Links
Forum Index

Home Page
Online Store
Tutorials
Download Center
French Forum
Quick File Links
Multimedia Fusion 2
Updates - build 248
Standard Version
Developer Version

Extension Packs
Bonus Pack 1
Bonus Pack 2
z33z Extension Pack
LIJI Extension Pack

The Games Factory 2
Latest Update - build 248
Community Links
Madword Arcade

GameBuilder
Fusion2Developers
The Daily Click

Extensions
Neatwares Extension List
Extension Updater (FusionUpdater)
Zoom Gamer
Click Chat
6 People are chatting