Added: 4 years ago
From: robgraham
Views: 11,849
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (37)

Sign In or Sign Up now to post a comment!
  • Your voice makes this so nice to watch.

  • Your voice made me shit my pants.

  • OMG your voice is like heaven.

  • 2:30 the tutorial actually starts if you know what a variable is.

  • there is no field where I can put in a Name for the var to my Dynamic Text Field. The only thing I can type in is the Instance Name. I am Using Actionscript 3 in CS5. So is there any other way?

  • Awesome tutorial! Very pedagogical, good explanation and awesome voice ^^

  • variables for dummies

  • variable for dummies

  • Fantastic. Clear, simple, easy for newbies to understand. I was stuck on usage and definition of variables for a week until I saw this. Thank you!

  • THANK YOU SOOOOO MUCH SIR! :D:D:D

  • I have a question. I used the variables to subtract ten from the variable every time I press a button, but how do I make it stop once the number reaches "0"?

  • @EvilCreeps Use an If statement.

  • This is awesome. Thanks.

  • thanks man, this really was a big help to me, wanna make games end stuff so vars are kinda important to me,

    but as soon as I put a if statement after the variable, the variable goes to zero automaticly and afterwards attacking will cause you to go bellow zero

    if (EHP = 0) { gotoAndStop("you win", "");}

    EHP is my variable being short for enemy hitpoints

  • @Tinopa2 using: if (EHP = 0){ will simply make EHP 0, like a declaration you should use: if (EHP == 0){ and this will work as an If statement, with the statements within it acting as True. You can also close the if statement and add: else{ and anything in the else code will act as a False statement if (EHP == 0) {  doSomething(); } else { doSomethingElse(); }
  • @iWolfrost aight thx

    hope it'll work, I'll find out as soon as my computer with flash works again

  • Thanks for he tutorial. You helped me a lot.

  • I'm using CS3, but using as2.0. I need to create a script, which would get the current month, get season according to the month and display greeting in a dynamic text box according to the season. This is how I started: on a blank layer first keyframe: myDate = new Date(); month = myDate.getMonth(); if (month<2) { season = winter; } Then for a button: on (release) { greeting = season(); } Why would it not work? Oh and the var in the dynamic text properties is set to greeting
  • Can anyone tell me how to make the days, stats, and HP for dating games ?

  • Thanks, this really helped me out! One thing though, I was disigning a game, and I want to make it so you have 5 lives. I got that part down, you click the wrong answer and it subtracts 1. I want it so when it gets to 0 it will go to the "you lose" frame. Instead it just keeps on going on the negative numbers. Can you or someone please help me out?

  • if you haven't already, make your lives into a variable, and then use this code:

    if(lives <1){

    gotoAndStop("youlose");

    }

    pm me if that doesb't work, and send me the code too.

  • add this:

    if (lives==0){ //if "lives"(dynamic texts var name) is equal to 0

    gotoAndStop(2); //do something. Here: Gotoandstop Frame 2, where there is a message!

    } //end

    Hope it helped :D

    Prid

  • check out conditional statements

  • Oh, I had that figured, never mind.

  • Thank you so much for these thorough instructions. Maybe I didn't pay enough attention here and I am new to Flash, but I'm just wondering wether you used ActionScript 2.0 or 3.0 on most of your tutorial?

  • flash 2.0

  • Do i need to make the variables global? because i can't get anything to appear in that text box! (I can if I set the variables on the main timeline )

    The dynamic text box doesn't seem to be able to 'reach into' the ball & pull out data? i even tried using a trace command and it's all working fine otherwise? what am i doing wrong. Im on CS3. I'm literally copying your video step by step. Maybe i just need a good nights sleep & a PC restart :) Thanks

  • no.. you don't need to make a variables global... unlike game maker :D

  • clear and concise - keep them coming

  • This is one of the better videos

    on youtube. keep them coming

  • Is there a way to make the number keep going up?

  • oops sorry it said...

  • lol u have a radio guys voice!

  • You are a legend. And your voice is wicked + plus I love how u talk on the video. U shud be a radio presenter

  • aw...garsh (blushes)

  • u rule omg u r helping me soo much

  • i coudnt do the thing wid the typing box thing the button i couldnt clik it?

  • thank you Greatly Appreciated

Loading...
Alert icon
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