Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Sprite wont mirror and i cant figure out why it wont

Author
Message
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 16th Jan 2006 22:53 Edited at: 16th Jan 2006 23:21
hey everyone!
so i have my code but for some reason it wont mirror back to the right after the left.
this is my code:



if anyone could figure out why it wont mirror back that would be great.

thanks in advance,
-=Snowfall Stydios=-

StevetS
20
Years of Service
User Offline
Joined: 19th May 2004
Location:
Posted: 16th Jan 2006 23:15 Edited at: 16th Jan 2006 23:15
Hi,

Your code as-is does flip but you gotta hit rightkey then leftkey pretty much straight away!

You've cut and pasted your leftkey code into rightkey but forgotton to change the 'leftkey()' to 'rightkey()' as the following:

Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 16th Jan 2006 23:18
oh lol. that was so simple! thank you so much StevetS

StevetS
20
Years of Service
User Offline
Joined: 19th May 2004
Location:
Posted: 16th Jan 2006 23:22
NP! Good luck!
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 16th Jan 2006 23:25
oh one more thing. how do i make him stop at the edge of the screen?

UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 16th Jan 2006 23:31

Just change the variable to what variable you are using for the player position.


Hippopotomonstrosesquippedaliophobia-Fear of long words
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 16th Jan 2006 23:39 Edited at: 16th Jan 2006 23:40
he only stops on the right side

[Edit] i got it. nvm [/edit]

UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 16th Jan 2006 23:42
It was just the general idea.


Hippopotomonstrosesquippedaliophobia-Fear of long words
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 17th Jan 2006 00:23
thanks UFO

UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 17th Jan 2006 00:29
np


Hippopotomonstrosesquippedaliophobia-Fear of long words

Login to post a reply

Server time is: 2024-11-27 07:40:44
Your offset time is: 2024-11-27 07:40:44