A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Screen moves but sprite doesnt

Hybrid View

  1. #1
    MSPaint Master
    Join Date
    Dec 2005
    Location
    Texas
    Posts
    71

    Screen moves but sprite doesnt

    is there a code where the sprite is in the middle of the screen and when I hold down any of these it looks like the character is moving, but actually the screen is?
    W
    ASD

    I have every slide for movements.
    and I tried working with Sprites.zip to work with it but couldnt seem to get it to work =P


    Ce-Bro Productions, an online game making a web comic community

    Ce-Bro.com

  2. #2
    Game Master ConnELITE's Avatar
    Join Date
    Apr 2005
    Location
    United States, DC
    Posts
    474
    you mean something like this? http://www.armthewolves.com/sprites.swf

    its kinda hard to explain in text so I'm actually working on a video tutorial for it again. Dont count on it soon though lol. But for making it look like the screen is moving just make a var called everythingspeedx and everythingspeedy, then make a keyboad element saying on left everything speed=-50 or something. Then make a script run every frame saying:
    box1.velocity.x=everythingspeedx
    etc
    BC

  3. #3
    MSPaint Master
    Join Date
    Dec 2005
    Location
    Texas
    Posts
    71
    yes thats excactly what I was looking foromg. lol, ok thanks
    Last edited by Eponefive; 02-08-2006 at 08:41 PM.


    Ce-Bro Productions, an online game making a web comic community

    Ce-Bro.com

  4. #4
    A Senior Newbie - How Odd ForumNewbie's Avatar
    Join Date
    Mar 2003
    Posts
    590
    Hey,

    That's a nice example Conn Nice little sprite you've got there

    EponeFive : The other place you might want to look is one of 2 of the 'community projects' that are listed on the forum somewhere. One was a version of 'boulderdash' that had some really good script for quick scrolling like this.

    M.
    Please note that my domain has changed to http://www.morganmultinational.com

  5. #5
    MSPaint Master
    Join Date
    Dec 2005
    Location
    Texas
    Posts
    71
    ok thanks , I will look for it=)


    Ce-Bro Productions, an online game making a web comic community

    Ce-Bro.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center