Jump to content
MakeWebGames

Recommended Posts

Posted

Well I was getting tired of the same old link to search the streets so I decided to add an image that you can click on instead of the link..

First upload an image that you wanna use for your streets.. In streets.php look for: print "

> <a href=streets.php>Continue Searching</a>

";

replace that with

 

";print "

";

you will have to obviously change the your image.jpg to what ever pic your using but it works good for me..

Posted

Re: Street Images

Its the small things that make a big difference to a script and how it looks :)

if you wanted to create a button then you could always goto www.grsites.com for your buttons and banners you can create your own styles has some nice effects aswell

Posted

Re: Street Images

i'll go check that out right now.. i'm always looking for ways to better the look of the game... i'm still new at all this so anything that I can learn i'm always interested

Posted

Re: Street Images

You just gave me a idea, so here i go lol.

Everytime you click search in streets.php a diff image shows...

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Count how many streets there are (if using database) then just make street images like.. 1.png, 2.png, 3.png *me thinks its a good idea lol.

If not database can just do like.

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: Street Images

 

hey thats a good idea.. have you tested it to see if that would work??? if so great.. i'll try it out

No i haven't tested it. It will work.. how i have done it. :-D

  • 2 weeks later...
Posted

Re: Street Images

$chance = rand(1,10);

if ($chance == 1) {

$spinpicA = 'streets1.jpg';

//random event or thing or nothing...

}

if ($chance == 2) {

$spinpicA = 'streets2.jpg';

}

if ($chance == 3) {

$spinpicA = 'streets3.jpg';

}

if ($chance == 4) {

$spinpicA = 'streets4.jpg';

}

if ($chance == 5) {

$spinpicA = 'streets5.jpg';

}

if ($chance == 6) {

$spinpicA = 'streets6.jpg';

}

if ($chance == 7) {

$spinpicA = 'streets7.jpg';

}

if ($chance == 8) {

$spinpicA = 'streets8.jpg';

}

if ($chance == 9) {

$spinpicA = 'streets9.jpg';

}

if ($chance == 10) {

$spinpicA = 'streets10.jpg';

}

print "<img src=$spinpicA 'width=500' 'height=300'>

";

there you go,

Posted

Re: Street Images

 

$chance = rand(1,10);

if ($chance == 1) {

$spinpicA = 'streets1.jpg';

//random event or thing or nothing...

}

if ($chance == 2) {

$spinpicA = 'streets2.jpg';

}

if ($chance == 3) {

$spinpicA = 'streets3.jpg';

}

if ($chance == 4) {

$spinpicA = 'streets4.jpg';

}

if ($chance == 5) {

$spinpicA = 'streets5.jpg';

}

if ($chance == 6) {

$spinpicA = 'streets6.jpg';

}

if ($chance == 7) {

$spinpicA = 'streets7.jpg';

}

if ($chance == 8) {

$spinpicA = 'streets8.jpg';

}

if ($chance == 9) {

$spinpicA = 'streets9.jpg';

}

if ($chance == 10) {

$spinpicA = 'streets10.jpg';

}

print "<img src=$spinpicA 'width=500' 'height=300'>

";

there you go,

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Prolly you save a few lines like this?

Posted

Re: Street Images

 

eh true, different ways to skin the same cat im guessing and no your math isnt bad :D

The one i said was just simple can be used.

Posted

Re: Street Images

i'm not a pro at this by any means but by looking at all the ideas, they would all work just the same.. +1 to all of you.. either which way you do it, it will work

  • 1 month later...
Posted

Re: Street Images

so now how can search the streets be set up to have different locations..

if in london search these streets...

if location NY...

and then according to levels...

so a level one can not search in NY

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...