A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Need help with a flash game

  1. #1
    Junior Member
    Join Date
    Jun 2007
    Posts
    7

    Cool Need help with a flash game

    Hi, right now im making my first game which is basicly a simple first person shooter.
    In that game you have a gun which shoots a character that moves back and forth on the screen.
    Well, It worked all fine until i got to the part when the character is supposed to die when its shot. The problem is that I cant make the drawing of the dead character appear in the same spot where the one who was alive and moving was.
    I tryed some codes that didnt appear to work, like:

    DeadChar._x = AliveChar._x;

    or some variations similiar to that.
    I will appreciate any help on this one. =]

  2. #2
    Member
    Join Date
    Apr 2007
    Posts
    75
    how about putting the dead pic on frame 2 of the person?

    if(bullet_mc.hitTest(_root.AliveChar)){
    _root.AliveChar.gotoAndPlay(2);
    }

    pretty sure my hitTest's wrong though, never used it.

  3. #3
    Junior Member
    Join Date
    Jun 2007
    Posts
    7
    No, it doesnt help... the dead char still needs to appear in the same place where the alive char was (even in mid movement)

  4. #4
    Banned
    Join Date
    Mar 2007
    Location
    Albania , prishtina
    Posts
    274
    It would be good to post any of your code here , or even better you file

  5. #5
    Junior Member
    Join Date
    Jun 2007
    Posts
    7
    errr... it doesnt let me delete this reply...
    Last edited by arty110; 06-10-2007 at 04:18 PM.

  6. #6
    Junior Member
    Join Date
    Jun 2007
    Posts
    7
    heres the .fla example of the game.
    I made it the same as i made the game so it should do... xD
    Attached Files Attached Files

  7. #7
    Banned
    Join Date
    Mar 2007
    Location
    Albania , prishtina
    Posts
    274
    Here is , i have animated it with Action not with tween ... And onPress that char , its speed will be 0 and it will got to frame 2

    I hope you like it ...

    Any question is welcomed
    Attached Files Attached Files

  8. #8
    Junior Member
    Join Date
    Jun 2007
    Posts
    7
    Wow, thanks, it was great xDxDxD
    helped me a lot... ^^^
    lol... im still a newb in this but im getting the idea ^_^

  9. #9
    Banned
    Join Date
    Mar 2007
    Location
    Albania , prishtina
    Posts
    274
    I am sure , that if you want to learn it , you WILL learn

  10. #10
    Junior Member
    Join Date
    Jun 2007
    Posts
    7
    Well, this really helped me... but i got another problem...
    when i want to make another character to move on the screen simultaniously with the first one only one of them moves...
    All I tryed is simply duplicating the code and modifying it for the characters but it doesnt work.
    any ideas for this one?

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