Jump to content
xisto Community
HannahI

Moving Images In Js

Recommended Posts

No, I'm making a game.

What sort of game are you making HannahI?

I could show you how to create a sliding blocks/picture game, that you slide blocks till you get all the blocks in the right position to create the finished picture using XHTML and Javascript.

Is that what you're after or are you after something else?


Cheers,


MC

Share this post


Link to post
Share on other sites

I'm trying to make a flight simulator, but it isn't working correctly.

Wow a flight simulator.

This would be too much effort for me to explain how to go about this. I have seen a flight simulator using google earth, maybe you could track that down and use what they have already worked out, all the co-ordinates, and physics, etc.


Cheers,


MC

Share this post


Link to post
Share on other sites

Here is the code so far:

<html><head>	<title>Flying All Online</title><script type="text/javascript">var i=1function starttimerL(){document.getElementById('ship').style.position="relative";document.getElementById('ship').style.left=+i;i++;timer=setTimeout("starttimerL()",0.01);}function starttimerMi(){	document.getElementById('missle').style.position="relative";	document.getElementById('missle').style.right=+1;		timer=setTimeout("starttimerL()",0.01);}function stoptimer(){clearTimeout(timer);}</script><style>body{background:#39F;}</style></head><noscript>Sorry, You need to have Javascript Enabled to play Flying All</noscript><body onLoad="showMon();"><p><a href="#" onClick="stoptimer();" style="background-color:#366; text-decoration:none; color:#F00">Stop</a><a href="#" onClick="starttimerL(); starttimerMi" style="background-color:#366; text-decoration: none; color:#F00">Go Left</a></p><p><span style="color:#30C; size:10px;">F</span>  <span style="color:#0F0; size:10px;">l</span>  <span style="color:#F00; size:10px;">y</span>  <span style="color:#630; size:10px;">i</span>  <span style="color:#396; size:10px;">n</span>  <span style="color:#FF0; size:100px;">g</span>  <span style="size:100px"> </span>  <span style="color:#F00; size:100px;">A</span>  <span style="color:#096; size:100px;">l</span>  <span style="color:#330; size:100px; padding-right: 100px;">l</span></p><p>  <img src="http://localhost/4.png" name="ship" width="58" height="=64" id="ship" />                                                  <span style="position:absolute;"><img src="http://localhost/bonus.png" alt="missle" name="missle" id="missle" onDblClick="stoptimer(); alert('Thing'); "></span><div id="missle2" style="position:absolute;"></div><img src="http://localhost/b1.png" alt="Boss" width="252" height="180" id="boss" />	                                                        </p><p> </p></body></html>

Share this post


Link to post
Share on other sites

Yordan, the point of the game is that you fly around the level while fight people, it's a little bit off topic, I'm making a remake of my friends game but I a having some trouble with the movement script and all. Now do you understand me?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.