Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Sun Nov 08, 2009 4:39 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ]  Bookmark and Share
Author Message
 Post subject: Naive newbie question about graphics in game script
PostPosted: Sat May 16, 2009 4:16 am 
Offline

Joined: Sat May 16, 2009 4:03 am
Posts: 6
I'm looking at an old Javascript script for the game Concentration, where small images of honey bees, flowers, fish etc are hidden under tiles.

Obviously, this is very naive of me - I'm a total beginner, but I cannot see how the images are loaded into the script. I suppose they're hidden under some 'array' term in a way I don't understand.

This is an old Brian Gosselin script for the game where he gives the script away free, so once again, my silly question is - where are the little pictures in the script!? I see only one .gif mentioned.

Thanks and apologies,

Mark


Top
 Profile  
 
 Post subject: Re: Naive newbie question about graphics in game script
PostPosted: Sat May 16, 2009 11:04 pm 
Offline

Joined: Sat May 16, 2009 4:03 am
Posts: 6
Sorry it's such a boring question.


Top
 Profile  
 
 Post subject: Re: Naive newbie question about graphics in game script
PostPosted: Mon May 18, 2009 7:14 am 
Offline
500+ Club
User avatar

Joined: Wed Feb 27, 2008 6:14 am
Posts: 929
Location: Cebu City Philippines
Hi Mark,

It would be a lot better if you could place in the script that you are using. It will help us easily understand what you're trying to point out.

_________________
~ Get me some work, I do freelancing ~


Top
 Profile  
 
 Post subject: Re: Naive newbie question about graphics in game script
PostPosted: Mon May 18, 2009 3:15 pm 
Offline

Joined: Sat May 16, 2009 4:03 am
Posts: 6
.

Thanks, rangana - will do.

Gratefully,

M

.


Top
 Profile  
 
 Post subject: Re: Naive newbie question about graphics in game script
PostPosted: Thu May 21, 2009 1:14 am 
Offline

Joined: Sat May 16, 2009 4:03 am
Posts: 6
Here's the code :

function init(){
clearTimeout(id);
for(i=0;i<=35;i++)user[i]=0;
ticker=0; min=0; sec=0; ctr=0; finished=0;
oktoclick=true;
document.forms["f"].b.value="Resetting game table...";
scramble();
id=setInterval('runclk()', 995);
for(i=0;i<=35;i++){
document.images[('img'+i)].src="image0.gif";
document.images[('img'+i)].alt="";}}

http://gtscript.com/download-scripts...tion-5446.html

....apparently the graphics are "inside" the array loaded by the init function, though all I see resembling a graphic is
src="image0.gif";

In fact, I'm not even sure where the array is in that code. I was hoping to carefully replace the graphic images in the array..... if I could find them.

Should I just download the code to my laptop and see what gets sent along with the array?

many thanks and apologies!

mark G.


Top
 Profile  
 
 Post subject: Re: Naive newbie question about graphics in game script
PostPosted: Thu May 21, 2009 1:21 am 
Offline

Joined: Sat May 16, 2009 4:03 am
Posts: 6
Gosh, just downloaded the code, and, sure enough, there all the graphics are in my folder.

I'm such a beginner.....


Top
 Profile  
 
 Post subject: Re: Naive newbie question about graphics in game script
PostPosted: Sat Jun 06, 2009 1:26 am 
Offline

Joined: Sat May 16, 2009 4:03 am
Posts: 6
.

Dear rangana,

I wanted to thank you for your encouragement. About four days after you posted, so about 10 days ago, I downloaded the code, found the graphics file, redid the graphics into coloured Russian words with English translations, increased the size of the buttons, and got it to work.

Now obviously, this is not much of an accomplishment in coding terms! Apart from inserting a 'not' into the text {these graphics were not designed by my wife, because of course I am not Brian} I did nothing else, and still don't really understand any of the detail.

But I'd like to post the new script/game on this thread.... if I knew how. Do I just attach the .zip file? All terribly basic still, I'm afraid.

I guess I must accept advancing in small steps...

Gratefully,

Mark


Top
 Profile  
 
 Post subject: Re: Naive newbie question about graphics in game script
PostPosted: Sat Jun 06, 2009 6:47 am 
Offline
500+ Club
User avatar

Joined: Wed Feb 27, 2008 6:14 am
Posts: 929
Location: Cebu City Philippines
Hi Mark,

Just zip it somewhere along the web and leave to us the URL so we could take a closer look.

_________________
~ Get me some work, I do freelancing ~


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley