A Flash Developer Resource Site

Results 1 to 17 of 17

Thread: Help Needed With A Game

  1. #1
    Member
    Join Date
    May 2009
    Posts
    30

    Question Help Needed With A Game

    Hey I Made This Game But ThScoring Won't Work & I Want It To Scroll So The Main Guy Will Always Be In The Centre. Now When U Move It Out Of The Screen It Dissapears, If You Could Edit It And Help Me I Wld Greatly Thank You. Ive Attached It

    Cheers, Corey
    Attached Files Attached Files

  2. #2
    Member
    Join Date
    May 2009
    Posts
    30

    Thumbs up Sorry

    My Email Is kgb1953(at)hotmail(dot)com
    Last edited by tonypa; 05-10-2009 at 12:07 PM. Reason: dont put your email straight into post

  3. #3
    Senior Member
    Join Date
    Aug 2007
    Posts
    228
    unexpected file format................
    WHY DOES THAT HAPPEN TO ME!

  4. #4
    the cheesy child bounceboy's Avatar
    Join Date
    Dec 2008
    Location
    Australia
    Posts
    323

    Ok....

    Hey Cnex. Cnex is new. he is a friend of mine.

    anyway we use CS3 so no wonder its wrong format.

  5. #5
    Member
    Join Date
    May 2009
    Posts
    30

    Thumbs up Heres The Flash 8 File

    HEre is the file in flash 8 it shld work now.....
    Attached Files Attached Files

  6. #6
    Senior Member Pazil's Avatar
    Join Date
    Sep 2006
    Location
    Ontario, Canada
    Posts
    913
    How about you actually try to learn some Actionscript, and fix it yourself man. We're not the "Here's code, please fix it" forum. We'll help you only if you put some effort in helping yourself. Ask more specific questions.
    WIP-ZOMBIES

    I love vegetarians! More meat for the rest of us!

  7. #7
    Hype over content... Squize's Avatar
    Join Date
    Apr 2001
    Location
    Lost forever in a happy crowd...
    Posts
    5,926
    Cnex, please take a couple of minutes to read the Read Me guide, it has some useful tips for posting which will help people to help you.

    Squize.

  8. #8
    Now tell me whos watchin...... samvillian's Avatar
    Join Date
    Feb 2007
    Location
    Where do you live?
    Posts
    539
    Quote Originally Posted by Cnex Industries View Post
    Hey I Made This Game But ThScoring Won't Work & I Want It To Scroll So The Main Guy Will Always Be In The Centre. Now When U Move It Out Of The Screen It Dissapears, If You Could Edit It And Help Me I Wld Greatly Thank You. Ive Attached It

    Cheers, Corey
    That should be a title of a book. (due to capitalization).

    What you could do to make it scroll with the character (like mario) is say:

    If character is in the middle of the screen (you walk to middle)
    moveWithScreen is true.

    then with your character movement you can add if moveWithScreen is true, then move the screen, not the character.



    thats the basic framework of how I would go about doing it.


    Edit, this is very general. tune it the way you want it to be. Just trying to steer you in the right direction (while you stay in the center of the screen )
    If the only tool you have is a hammer, you tend to see every problem as a nail.

    Xbox 360 Modding Controller PS3 Mod Paint Spray LED Case

  9. #9
    the cheesy child bounceboy's Avatar
    Join Date
    Dec 2008
    Location
    Australia
    Posts
    323
    Yeah corey is a friend of mine who uses flash and is new to it and he is actually starting to learn to follow tutorials and learn scripts himself.

    thank you guys, i hope he actually listens to you guys when you say it because he barely listens to me. he does this all the time to me.

    well anyway samvillian he already knows that but he wants to know how, i have told him to replace everywhere it tells the movieclip to move with making the movieclips with the walls in it move.

    by the way when you say put some effort into it, i wish he would because half the stuff he makes he rips of tutorial FLA files.

    so corey, remember I (and many others) have used flash for 2 years and taught my(or our) self to write and create the scripts.

    or we used a tutorial.

    or we asked for help because our script wasn't correct.

    sorry corey, i can't really help. i am quite sick of you asking me to edit your FLA files to make them work. i told you just to scrap this since you practically didn't make it and start from your own knowledge.

  10. #10
    Member
    Join Date
    May 2009
    Posts
    30

    Unhappy So Then How Do U ake It Scroll ?

    so hw do u make it have he guy in the middle all the time?

  11. #11
    Now tell me whos watchin...... samvillian's Avatar
    Join Date
    Feb 2007
    Location
    Where do you live?
    Posts
    539
    Quote Originally Posted by bounceboy View Post
    Yeah corey is a friend of mine who uses flash and is new to it and he is actually starting to learn to follow tutorials and learn scripts himself.

    thank you guys, i hope he actually listens to you guys when you say it because he barely listens to me. he does this all the time to me.

    well anyway samvillian he already knows that but he wants to know how, i have told him to replace everywhere it tells the movieclip to move with making the movieclips with the walls in it move.

    by the way when you say put some effort into it, i wish he would because half the stuff he makes he rips of tutorial FLA files.

    so corey, remember I (and many others) have used flash for 2 years and taught my(or our) self to write and create the scripts.

    or we used a tutorial.

    or we asked for help because our script wasn't correct.

    sorry corey, i can't really help. i am quite sick of you asking me to edit your FLA files to make them work. i told you just to scrap this since you practically didn't make it and start from your own knowledge.
    He's a friend of yours.... and you don't wanna help him... so you threw him at us.... It sorta sounds like you yourself don't know how to do it since you took the time to write that long post, when you coulda just answered it...



    wow. I will not help.
    If the only tool you have is a hammer, you tend to see every problem as a nail.

    Xbox 360 Modding Controller PS3 Mod Paint Spray LED Case

  12. #12
    Member
    Join Date
    May 2009
    Posts
    30
    so wat i do?

  13. #13
    Senior Member Pazil's Avatar
    Join Date
    Sep 2006
    Location
    Ontario, Canada
    Posts
    913
    Well, for starters, start to actually know what the hell you're doing with code. Check out tutorials, and read them. If you don't understand them, keep studying them until you do. Copy and pasting code won't get you anywhere.

    As soon as you have the knowledge to ask us something more specific, and when you've tried it yourself, post some code, and we'll see what we can do...
    WIP-ZOMBIES

    I love vegetarians! More meat for the rest of us!

  14. #14
    Member
    Join Date
    May 2009
    Posts
    30
    ok hw can i cntre the guy hres the code:
    PHP Code:
    yspeed 0;
    xspeed 0;
    gravity 0.2;
    rotationspeed 0;
    power 1.1;
    friction 0.9;
    fly.onEnterFrame = function() {
        while (
    ground.hitTest(fly._xfly._ytrue)) {
            
    fly._y--;
        }
        while (
    ground.hitTest(fly._x-25fly._y-25true)) {
            
    fly._x++;
            
    xspeed 0;
        }
        while (
    ground.hitTest(fly._x+25fly._y-25true)) {
            
    fly._x--;
            
    xspeed 0;
        }
        while (
    ground.hitTest(fly._xfly._y-fly._widthtrue)) {
            
    fly._y++;
            
    yspeed 0;
        }
        if ((
    _root.ground.hitTest(fly._xfly._y+1true))) {
            
    yspeed 0;
        }
        
    xspeed *= friction;
        
    this._x += xspeed;
        
    rotationspeed *= friction;
        
    this._rotation 0+rotationspeed/2;
        
    this._y += yspeed;

        if (
    Key.isDown(37)) {
            
    xspeed -= power;
            
    rotationspeed += power*xspeed/2;
        } else if (
    Key.isDown(39)) {
            
    xspeed += power;
            
    rotationspeed += power*xspeed/2;
        }
        if (
    Key.isDown(38)) {
            
    yspeed -= power;
            
    fly._y -= 0.2;
        }
        if (
    Key.isDown(49)) {
            
    _root.total _root.total 100;
            
    fly.gotoAndPlay(5)
        }
        if (
    Key.isDown(50)) {
            
    _root.total _root.total 100;
            
    fly.gotoAndPlay(40)
        }
        
        if (
    yspeed<0) {
            
    yspeed *= friction;
        }
        
    yspeed += gravity;
    }; 

  15. #15
    the cheesy child bounceboy's Avatar
    Join Date
    Dec 2008
    Location
    Australia
    Posts
    323
    Quote Originally Posted by samvillian View Post
    He's a friend of yours.... and you don't wanna help him... so you threw him at us.... It sorta sounds like you yourself don't know how to do it since you took the time to write that long post, when you coulda just answered it...



    wow. I will not help.
    um....
    yeah. its not i don't wanna help him.
    its that i can't help him and i had no idea.

    i told him that i had no idea but he continued to ask me and send the FLA.

    that is why i said i am sick of him sending FLAs.

    i didn't throw him at you...

    i told him if he needs help here's a good place.

    but i didn't know he would continue to put in no effort.




    and to corey, try to write your own code PLEASE?

    and if it doesn't work put it here.

    instead of ignoring everybody and continuing.
    Last edited by bounceboy; 05-13-2009 at 05:31 AM.

  16. #16
    Developer dVyper's Avatar
    Join Date
    Oct 2008
    Location
    UK
    Posts
    168
    Try this:

    PHP Code:
    import flash.media.game.*;

    var 
    game:CopiedGame = new CopiedGame();
    game.player.centreGuy(); 
    If not, try this:

    PHP Code:
    import your.own.code;
    etc... 
    But seriously, you might want to look into moving the stage in the opposite direction to the player. Perhaps that might work
    Last edited by dVyper; 05-13-2009 at 06:47 AM.

  17. #17
    Now tell me whos watchin...... samvillian's Avatar
    Join Date
    Feb 2007
    Location
    Where do you live?
    Posts
    539
    if(player._x >= 275){
    level._x -= speed;
    player._x = 275;
    }else{
    player._x += speed;
    }


    ..........wow.... expand on that, its just a basic idea. I just didn't want this to be a flame war.
    If the only tool you have is a hammer, you tend to see every problem as a nail.

    Xbox 360 Modding Controller PS3 Mod Paint Spray LED Case

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