A Flash Developer Resource Site

Page 2 of 4 FirstFirst 1234 LastLast
Results 21 to 40 of 66

Thread: [MX] Guitar hero game help plz!

  1. #21
    ★TOP MEMBER★
    Join Date
    Feb 2009
    Posts
    126
    they cant

  2. #22
    ★TOP MEMBER★
    Join Date
    Feb 2009
    Posts
    126
    THis how its should go
    A star comes down the fretbar(HIghway on guitar) when it touches the star down the bottom you have to press 1 then the score goes up 500 and the star dissapers then it duplicates the movie clip!

  3. #23
    ★TOP MEMBER★
    Join Date
    Feb 2009
    Posts
    126
    But...

  4. #24
    ★TOP MEMBER★
    Join Date
    Feb 2009
    Posts
    126
    If they miss the star continues past the line then deletes it self and starts again (ive allready done this animation) the volume goes down a bit and 10 points are deducted from the score!

  5. #25
    ★TOP MEMBER★
    Join Date
    Feb 2009
    Posts
    126
    Ok so do u get it?

  6. #26
    ★TOP MEMBER★
    Join Date
    Feb 2009
    Posts
    126
    Seriously go check this game out it will show you what im doing:
    http://www.addictinggames.com/guitarmasters.html
    theres no spam or anything!

  7. #27
    ★TOP MEMBER★
    Join Date
    Feb 2009
    Posts
    126
    If you look at that game or play it youll get a really good understanding

  8. #28

  9. #29
    ★TOP MEMBER★
    Join Date
    Feb 2009
    Posts
    126
    Bjh !!!!!!!!!!!!!!!!!

  10. #30
    Junior Member
    Join Date
    Feb 2009
    Posts
    18
    Game Maker Guy, you should really just edit your posts instead of posting a new one each time.

    the code you should put in the frame actions is as follows:

    PHP Code:
    target1.onEnterFrame = function() {
        if (
    Key.isDown(49)) {
            if (
    target1.hitTest(note1) == true) {
                if (
    note1.point_dealt == false) {
                    
    _global.score += 500;
                    
    song.setVolume(100);
                    
    note1.point_dealt true;
                }
            } else {
                if (
    note1.point_dealt == false) {
                    
    _global.score -= 10;
                    
    song.setVolume(60);
                    
    note1.point_dealt true;
                }
            }
        }
        
    _root.scoreBox.text _global.score;
    }; 
    what this does, is each step (or frame) the target1 checks to see if the 1 button is held down (KeyCode 49) and if it is, it makes sure that the points for that note haven't already been given or taken away (for a hit or a miss). If the note is touching the target then 500 points are added to the score, and if the note is not touching the target (a missed strum) then 10 points are taken away.

    Make sure you change the object "song" to whatever object or instance your music playing is called, as the song.setVolume is how it is controlled (in percentage, ie: 60 is 60% of full volume.)

    also, the line "_root.scoreBox.text = _global.score;" I believe can be replaced with your updateScore() function.

    -bjh

    PS: Projects take a long time, if you are to truly get a guitar hero game going like you plan, it will take longer than I believe you expect it to.
    Last edited by bjh; 02-16-2009 at 02:14 AM.

  11. #31
    ★TOP MEMBER★
    Join Date
    Feb 2009
    Posts
    126
    Not working

  12. #32
    ★TOP MEMBER★
    Join Date
    Feb 2009
    Posts
    126
    target1.onEnterFrame = function() {
    if (Key.isDown(49)) {
    if (target1.hitTest(note1) == true) {
    if (note1.point_dealt == false) {
    _global.score += 500;
    song.setVolume(100);
    note1.point_dealt = true;
    }
    } else {
    if (note1.point_dealt == false) {
    _global.score -= 10;
    song.setVolume(60);
    note1.point_dealt = true;
    }
    }
    }
    _root.scoreBox.text = _global.score;
    };

  13. #33
    Junior Member
    Join Date
    Feb 2009
    Posts
    18
    Quote Originally Posted by Game Maker Guy
    Not working
    Would you mind clarifying, I am trying to help you after all.

  14. #34
    ★TOP MEMBER★
    Join Date
    Feb 2009
    Posts
    126
    YEP NOT WORKING? IVE CHANGEED THE SONG NAME TO song
    and ive tested it out when i press 1 nothing happens i tried changeing it to KeyUP but that dosent work either any ideas?

  15. #35
    ★TOP MEMBER★
    Join Date
    Feb 2009
    Posts
    126
    YEs u are definitly helping me alot! THANK U FOR UR EFFORTS!

  16. #36
    ★TOP MEMBER★
    Join Date
    Feb 2009
    Posts
    126
    YOu probley need to take me through each step
    tell me what things i need to change names of ask me what what is called and check that everything works with the code-

    Im not a genuis like you at flash but through the internet and extremley helpfull people like you i am learning and some day i wont have to bother people as much to find out things.

  17. #37
    Junior Member
    Join Date
    Feb 2009
    Posts
    18
    would you mind posting your .fla?

  18. #38
    ★TOP MEMBER★
    Join Date
    Feb 2009
    Posts
    126
    SO what do we need to do?

  19. #39
    ★TOP MEMBER★
    Join Date
    Feb 2009
    Posts
    126
    Boss

  20. #40
    ★TOP MEMBER★
    Join Date
    Feb 2009
    Posts
    126
    Ok how do i post my flash?

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