Browser MMO video #8
Re: video#8
@halls:
I know i am not active in the tut topics, but i really appreciate your hard work. Thanks!
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.
king noob. Nice.
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: video#8
I am working on video 9 right now, should be up tonight or in the morning
Re: video#8
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.
if it doesnt return.....hunt it down and kill it.
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: video#8
Do you just mean adding images to your game in general?darspire wrote:thx for the awesome vids halls. i just still dont know how to add images to my game.it confuses me
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
Re: video#8
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
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.
if it doesnt return.....hunt it down and kill it.
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: video#8
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.
<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.
Re: video#8
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.
if it doesnt return.....hunt it down and kill it.
Re: video#8
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.
if it doesnt return.....hunt it down and kill it.
Re: video#8
ok but still images wont get added
if you love something, let it go.
if it doesnt return.....hunt it down and kill it.
if it doesnt return.....hunt it down and kill it.