Be a Supporter!

Scrolling screen

  • 301 Views
  • 3 Replies
New Topic Respond to this Topic
Sam
Sam
  • Member since: Oct. 1, 2005
  • Offline.
Forum Stats
Moderator
Level 19
Programmer
Scrolling screen 2005-10-13 17:54:15 Reply

Anyone know the code to make the screen scroll when the main character moves?

Thanks,
Sam

T-H
T-H
  • Member since: Jan. 7, 2004
  • Offline.
Forum Stats
Member
Level 40
Blank Slate
Response to Scrolling screen 2005-10-13 17:57:21 Reply

heres a tutorial that might help

Sam
Sam
  • Member since: Oct. 1, 2005
  • Offline.
Forum Stats
Moderator
Level 19
Programmer
Response to Scrolling screen 2005-10-13 17:57:58 Reply

Thanks alot

Bofred
Bofred
  • Member since: Mar. 28, 2003
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
Response to Scrolling screen 2005-10-13 18:02:52 Reply

just put something like

onclip(enterframe)
if(keyisdown.right)
_root.background._x -=5
else
if(keyisdown.left)
_root.background._x +=5

make it correct and it will do the job =D

see ya