php programming help changing background based on location in a game?
January 9, 2011 – 11:12 amOk heres what i got, a script that keeps track of a city that the player is located in, now i want to know what i need to make the variable change the background according to what number the database brings back. It has to be completely php based, that will change the background if i can make the variable something like $variable and how to make the php/css reflect the background according to what number that variable is, im using dreamweaver if that helps answering this.
Related posts:
- How do I create my own java based video game?
- In php, need the background image to check for a variable and load accordingly?
- How can move php echo script or display to an specific location in the browser page?
- How do you script(php) for a simple pet game?
- How do you make a text based game out of Ruby(computer program)?
- How to go from a level to a nother in a java applet game?
- How do I make a pages background image change according to time in PHP?
- How to run a python based game under Kubuntu?
- How to run a python based game under Kubuntu?
- Is there a php based script that will automatically translate a website according to the visitors IP?
One Response to “php programming help changing background based on location in a game?”
<?php
//Get the variable….
echo ‘<body style="background: url(\’/images/’.$variable.’.jpg\’);">’;
By StupidShep on Jan 9, 2011