Page 2 of 10
Re: video#8
Posted: Fri Jul 10, 2009 4:03 pm
by kyraneth
@halls:
I know i am not active in the tut topics, but i really appreciate your hard work. Thanks!
Re: video#8
Posted: Fri Jul 10, 2009 4:57 pm
by hallsofvallhalla
thanks!
Re: video#8
Posted: Wed Jul 15, 2009 12:48 am
by hallsofvallhalla
I am working on video 9 right now, should be up tonight or in the morning
Re: video#8
Posted: Sat Jul 25, 2009 9:31 pm
by darspire
thx for the awesome vids halls. i just still dont know how to add images to my game.it confuses me
Re: video#8
Posted: Sat Jul 25, 2009 9:58 pm
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>";
Re: video#8
Posted: Sat Jul 25, 2009 11:42 pm
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
Re: video#8
Posted: Sun Jul 26, 2009 1:04 am
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.
Re: video#8
Posted: Sun Jul 26, 2009 10:17 pm
by darspire
omg now i cant even get on to localhost/tutorial/login.php it just redirects me to fastbrowsersearch
Re: video#8
Posted: Sun Jul 26, 2009 10:20 pm
by darspire
nvm i got that fixed its just that wamp wasn't running
Re: video#8
Posted: Sun Jul 26, 2009 10:51 pm
by darspire
ok but still images wont get added