Added: 2 years ago
From: DevNote
Views: 3,705
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (44)

Sign In or Sign Up now to post a comment!
  • Wonderful tutorial! I learn a lot! Thanks :)

  • Thank you for your great tutorials!!! They where very helpful.

  • @WobWop thank you for the positive feedback! i'm planning on creating more tutorials soon, but first need to get some feedback from the community. if you have a couple minutes to spare, i'd appreciate it if you (or anyone else reading this) would go to bigtac.com and leave some suggestions in the "tutorials" tab section or vote for suggestions that others have left. thanks again!

  • Thanks a bunch DevNote, you save my life.

  • Dude you are AMAZING,had a little problem with the font embedding though...(Im using CS5)

  • Right click ball... bring to font.. Oh wait no.

    Hahah. I love the humor in this.

  • thanks for the rad tutorials, would love to see some on creating a tile based game, currently youtube doesn't have any tutorials on this topic

  • this was a great starting video it help a whole lot from ground zero all  the way up

  • thanks for the help but when I start the game up and start playing as soon as i get one bounce instead of going from 0 - 1 it goes from 0 then a blank space please help thanks

  • @Uzebar you have to go to properties and click the embed button (is beside font style and below font family in cs5) then click the numerals check box on the right side and on the left there is a + and - button at the top left, click on that then hit okay and it will work. i had the same problem and just figured it out

  • You know.. I love you.. And I'm not gay or something.. but DAMN.. I've been looking for such a tutorial as this one for like a month or something.

    I really, really appreciate it.

  • Really love your tutorials! As a AS3 beginner i appreciate how you go over things and explain what they do. Even though i'm not completely lost when it comes to programming, the biggest issue for me is to understand the math and physics in games. Trying to figure out how this gravity thing really works... i'll get there eventually ^^

  • Thank god he fixed that top boundary typo. I saw it the second he made the mistake and it was really bugging me throughout the entire tutorial. Really great info in this though. Thanks. :)

  • Good Tutorial!!

    Watched it in its entirety, and thank for you making it =)

  • Coming from someone who already understands C/C++ this is much better than the tedious beginner tutorials out there. *Thumbs Up* Great tutorial

  • Amazing tutorial. I loved watching you make slight mistakes and iron them all out by the end. Also you have a sexy voice.

  • @byeo9001 haha, thanks! i'm only used to getting technical comments and questions, so i'm a bit at a loss for words :)

  • 2 Questions. a) I have sounds for player hit and boundary check and they work fine (ty btw) except for when the ball is motionless resting on the bottom boundary.. at rest the ball continues to check the collision thus playing the sound non-stop. Is there a way to stop the sound once it's "at rest" ... if the checks are too close together then do not play sound.. something of that nature.

  • @redblugreenjello

    b) I have this semi transparent glass movieclip in the foreground (think squash court) is it possible to keep it on top and "click through" onto the ball? As it stands now, it blocks all mouse interactions with my ball.

  • @redblugreenjello

    where would it put something like mouseEnabled=false for this foreground movieclip?

  • @redblugreenjello sorry, i didn't even get an email notifying me of your comment :P

    anyway, if you're still looking for where to put that code, the constructor should be fine (the DocumentMain() function).

  • @redblugreenjello hey, sorry i've been on the road for the past four days.. but as for your issue (assuming it's still an issue), the solution should be pretty simple:

    encase the sound code in a simple if-statement. let the if statement test the condition that the ball's speed (in the y-direction) is greater than a certain epsilon quantity (e.g. the force of gravity or force of gravity times two.. something like that).

    that should work. good luck!

  • not sure how to implement this.. right now i got this is my bottom bound check:

    if (_vy -= (_vy * 2))

    {

    var ms:BoundaryHit = new BoundaryHit();

    ms.play(1);

    }

    but the problem is still there.. am i on the right track?

  • @redblugreenjello also trying this but result is worse: else if (bottom > stage.stageHeight && _vy > 0) { _ball.y = stage.stageHeight - (_ball.height / 2); _vy *= -BOUNCE_FACTOR; _vx *= BOUNCE_FACTOR; if (_ball.y = _vy * 2) { var ms:BoundaryHit = new BoundaryHit(); ms.play(1); }
  • @redblugreenjello if you're still having trouble implementing this, here are some more pointers:

    - the sound should be invoked within the brackets beginning on line 82 (looks like you got this part right)

    - the if condition to trigger the sound should look something like "if (_vy > 2 * GRAVITY)"

    hope that helps!

  • @DevNote TY for getting back to me on this.. it's really starting to hunt me in my sleep. Interesting solution.. but when i attach the above code to line 82 i have the ball triggering the sound all the way down the fall.. as it is attached solely to the velocity of the ball, no adjustment seems to get it right. Now when i nest it inside the existing bottom bound check it does not play at all.

  • @redblugreenjello at first glance, it seems to me that it should work when nested within the bottom bound check (together with the "if" statement i sent you earlier), but the reason it "does not play at all" right now could be a result of having put in the "if" statement AFTER all the other code within the nested bottom bound check (b/c this would cause the provided "if" statement to be evaluated AFTER the vertical velocity has been flipped and dampened).

  • great tutorial, i followed all directions, but my ball doesn't move at all and the compiler comes up with no errors. the cursor changes when i hover over the ball, but the ball does not move at all. Can you please help me?

  • my best guess would be that there is a typo somewhere in the code. to quickly check for this, you can go to devnote[dot]org and try out your game with the original source code posted there.

    my next best guess would be that your instance of the "Ball" class (the image of the ball on the stage of your "Project" file) has not been named as "_ball" (via the properties panel).

    hope one of those work out for you.

  • thank you I got it working now.

  • Thanks for the really quick answer and the perfect solution!

  • Thanks for the tutorial. I dont know if you know but do you know how to add a splash screen to a game as when i add a frame before this one it reads the actionscript file and obviously cannot find the parts from the second frame in the splash screen frame. Is there a way to disable the DocumentMain code for the first frame then enable it for the second frame?

  • There are several ways to accomplish what you're looking to do. I'm not sure what your experience with flash is, but I'll attempt to roughly explain one possible solution; please feel free to let me know if you require more details.

  • - create your splash screen on frame 1 as you normally would (including stop or pause functionality)

    - clear the document class field (where it currently reads "DocumentMain"

    - create a new movie clip in your .fla file and give it the class name "DocumentMain"

    - drag the newly created DocumentMain class into frame 2

    it's not the best solution, but probably the easiest to explain, given the situation. good luck!

  • That was an awsome tutorial. Thank you so much for posting!!!

  • Glad it helped! Thank you for the positive feedback!

  • Thank you, for this video.

    I have a problem. Hope you can help me.

    And hope also you can make a video of it. The problem is, I want to feed a percentage outcome or result, for example:

    1 right answer of 4 = 25%

    2 of 4 = 50 %

    etc. Thank you :)

  • here is one possible solution ------------------ // supply fraction and total var fraction:Number = 1; var total:Number = 4; // calculate percentage var percentage:Number = 100 * fraction / total; // display percentage trace(percentage + "%"); // display rounded percentage trace(Math.round(percentage) + "%"); ------------------ hope this helps
  • i come from director lingo and i was struggling a lot with classes and other stuff actionscript has.

    this was my first app in actionscript!!!

    thanks man!!!

  • Congrats, and thanks for the feedback!

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more