Browser MMO video #8

Location of the Videos
User avatar
kyraneth
Posts: 664
Joined: Thu Apr 23, 2009 2:56 pm

Re: video#8

Post by kyraneth »

@halls:
I know i am not active in the tut topics, but i really appreciate your hard work. Thanks!
Just FYI, the post is above, so stop looking down here and do something useful.

king noob. Nice.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: video#8

Post by hallsofvallhalla »

thanks!
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: video#8

Post by hallsofvallhalla »

I am working on video 9 right now, should be up tonight or in the morning
darspire
Posts: 194
Joined: Sat Jul 25, 2009 9:21 pm

Re: video#8

Post by darspire »

thx for the awesome vids halls. i just still dont know how to add images to my game.it confuses me
if you love something, let it go.
if it doesnt return.....hunt it down and kill it.
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: video#8

Post by Jackolantern »

darspire wrote:thx for the awesome vids halls. i just still dont know how to add images to my game.it confuses me
Do you just mean adding images to your game in general?

If so, the interesting thing to know about PHP is that it actually affects the HTML that the web server returns back to the end-user's browser. So it is a good idea to have a solid grounding in HTML if you want to create a game in PHP. Using PHP, you can dynamically display images using HTML commands. Here is pretty much the standard in online HTML tutorials:

W3School Tutorials

Work through the HTML or XHTML (they are not that different) tutorials. This will give you a better understanding of how to alter the webpage output sent back by PHP. You can simply add HTML inside PHP double-quoted echo statements to have it render correctly on webpage. For example:

Code: Select all

echo "<p><strong>This is a bolded paragraph using HTML strong tags</strong></p>";
The indelible lord of tl;dr
darspire
Posts: 194
Joined: Sat Jul 25, 2009 9:21 pm

Re: video#8

Post by darspire »

can you put a code up that makes a picture appear? i want to see the basic coding. and if you can, can you tell me what to put to make my pic appear?
i thought that when you put the code:

<div id="login"><div align="center"><img src="images/logo.gif" width="354" height="71" border="0" />

you had to replace the "images/logo.gif" with the picture url...
idk im just 14 i dont know much about this stuff
if you love something, let it go.
if it doesnt return.....hunt it down and kill it.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: video#8

Post by hallsofvallhalla »

yes all you have to do is place you pic int heimages folder and change the name. Make sure you also change the extension. So if you have a jpg named mylogo.jpg


<div id="login"><div align="center"><img src="images/mylogo.jpg" width="354" height="71" border="0" />

also you may need to change the width and height depending on your pic.

ley me know if you need any help.
darspire
Posts: 194
Joined: Sat Jul 25, 2009 9:21 pm

Re: video#8

Post by darspire »

omg now i cant even get on to localhost/tutorial/login.php it just redirects me to fastbrowsersearch
if you love something, let it go.
if it doesnt return.....hunt it down and kill it.
darspire
Posts: 194
Joined: Sat Jul 25, 2009 9:21 pm

Re: video#8

Post by darspire »

nvm i got that fixed its just that wamp wasn't running
if you love something, let it go.
if it doesnt return.....hunt it down and kill it.
darspire
Posts: 194
Joined: Sat Jul 25, 2009 9:21 pm

Re: video#8

Post by darspire »

ok but still images wont get added
if you love something, let it go.
if it doesnt return.....hunt it down and kill it.
Post Reply

Return to “Older Browser MMO Videos”