Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / arrays and images

Author
Message
chunks
18
Years of Service
User Offline
Joined: 18th Mar 2006
Location:
Posted: 19th Mar 2006 01:09
can any1 help im trying to make a memory game need to load 1 to 9 images then put them into an array
Pheonixx
21
Years of Service
User Offline
Joined: 6th Oct 2003
Location: Columbus, Ohio
Posted: 19th Mar 2006 02:07
well essentially you want to have 9 images that you match up thru a randomly placed board game, correct?

match games have 2 of each, so you need an array of 18.. you want to have the image, the x location and the y location of each peice, so you would make this...

DIM Cards(18,3) AS INTEGER

card 0 is at x,y `first image
card 1 is at x,y `first image
card 2 is at x,y `second image
card 3 is at x,y `second image
card 4 is at x,y `third image
...

if the first card picked is card 0 and the second card picked is card 1 then they match.... etc etc...

this is just one of many ways to do it.

http://ausukusa.breakset.com
chunks
18
Years of Service
User Offline
Joined: 18th Mar 2006
Location:
Posted: 19th Mar 2006 11:35
tried that i cant get it to use the images ive loaded previously its also 8 imges for the memory cards and one to cover them the grid will be 4x4 squares or 16 together thx
chunks
18
Years of Service
User Offline
Joined: 18th Mar 2006
Location:
Posted: 19th Mar 2006 11:55
heres the code dont know what comes after the =in the array
or how to apply the images to it
chunks
18
Years of Service
User Offline
Joined: 18th Mar 2006
Location:
Posted: 19th Mar 2006 17:28
sussed the array out but cant stop the images pasting on each other



Login to post a reply

Server time is: 2024-11-27 01:36:47
Your offset time is: 2024-11-27 01:36:47