News:

If you need instructions on how to get through the hotels, check out the enclosed instruction book.

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - RomanClock

#1
General Discussion / patriotclocks biggest topic
November 21, 2013, 07:13:57 AM
Quote from: PatriotClock;1963190whats your second favorite color??? mines orange
Hey, that's my color :c
#2
Anyone else getting this warning from Google about malware coming from this site?
#3
Boomy and Clockcrew sittin in a tree
T
   I
   C
   K
   I
   N
   G!
#4
General Discussion / JII! usb lighter
September 10, 2013, 05:46:56 AM
Just get a fuckiing e-ciig
#5
General Discussion / Shameless Character Fishing
August 12, 2013, 12:13:21 AM
NAME: Roman
ALIASES: General, Commander, Senator
PERSONALITY: Calculated, eccentric
CATCHPHRASE/COMMONLY USED WORDS: "Excellent" or "Interesting"
LINE OF WORK: Politics/war
HOBBIES: Watching epic battles and baking
BIGGEST FEAR: world peace
INSTRUMENT: harpsichord
WEAPON: short sword, shield, javelin
SUPER POWER: tactician extraordinaire
DIET: chicken, potatoes, pastas
PET PEEVES: boring people, fat people
FAVORITE COLOR: bronze
FAVORITE ANIMAL: crocodile
FAVORITE MOVIES/SHOWS/ETC: things with castles and/or epic battles (Howls Moving Castle, 300)
VEHICLE: chariot or expensive sports cars on occasion
RESIDENCE TYPE: roman style senate house with combined Colosseum and a summer home based on Italian architecture
LOCALITY: Italia, Greece
#6
General Discussion / Crocodile Sings
August 11, 2013, 11:49:23 PM
Surely someone can translate this awesome? :3
#7
General Discussion / Crocodile Sings
August 09, 2013, 07:05:30 PM


I dunno what he's saying but this is great!
#8
Well, you guys could make the AS2 version and I can make an AS3 version? I assume what you have is AS2 so Id have to redo everything in AS3.
You guys better get on to learning that AS3!!!
#9
Jumbotron is probably doable, I can also make the crowd do the wave or go crazy when it finishes or even do flips. If I could get the FLA (I have CS5.5) I could test some stuff out. This would have to be AS3 though.
#10
My connection is too fast to see it load but it looks weird to have a field and then suddenly a B?
Maybe have the pillar lift the B off of the field?
I can't tell how complex the loader is but if you want some fancy effect, hit me up.
#11
[ATTACH=CONFIG]1977[/ATTACH]

Surprise, I am not in fact a robot.
#12
General Discussion / I'm sorry guys :(
July 02, 2013, 03:28:45 AM
Seems we've had a suddenly influx of veteran members recently. Welcome sir.
#14
The biggest difference that I noticed is AS3 is strongly typed, meaning you have to define what a variables type is. Another major difference was implementing continuously executing code and the placement of code was restricted to keyframes and AS files. It's also much faster and encourages better object oriented programming practices. AS2 was more similar to Python, while AS3 is more similar to Java. Overall AS3 offers more options, flexibility, and power by moving towards a proper programming language format instead of a traditional scripting language (which incidentally might make it more difficult for beginners to pick up).

For example, these 2 code snippets do the same thing:
AS2
q = 0;
this.onEnterFrame = function() {
q++;
trace(x);
}
AS3
addEventListener(Event.ENTER_FRAME, plus);
var q:Number = 0;
function plus(e:Event)
{
q++;
trace(q);
}
#15
General Discussion / Registering a domain?
June 28, 2013, 02:47:47 AM
Also, I use host gator. Seems pretty good and straight forward. They have ads on their cpanel though, but its probably the same with most cheaper companies. I was required to do research on 10 different hosting services and Host Gator was at the top for me. Blue Host is also probably a good bet.

Protip: Buy web space on one site and buy the domain on a another. That way they can't hold your domain hostage if you want to switch services.
#16
Flash & Flash Accessories / Programming Fast Ask
June 27, 2013, 05:17:15 PM
Quote from: MightyBooshClock;1952771Alright :) Would you mind describing how that code works to me?

var alive = true;The "Game Over" variable. While it is true, you will keep playing the game. Otherwise the game is over.
var path = gamePath0();Path is the variable that holds where you are in the adventure. You can use numbers or names/phrases.
while(alive){Create a loop that continues until you game over.
  if(path==1){
      path = gamePath1();
   } else if(path==2){
      //Display Game Over
      alive = false;
   }
}
An if/else structure used to check where you are in the game. Based on the value of path, it will execute the function according to where you are.
function gamePath0(){Declares a new function. Each time you have a set of choices, you would make a function. Each function contains a prompt and returns a new value for path used to figure out where you are in the game.
  var path = 0;Declares path within the function. As long as it is 0, it will keep displaying the prompt.
  var x;Just declares x exists, it will be used later.
  while(path==0){A while loop that will continue to display the prompt until you give it a valid reply.
     x = prompt;The prompt!
     if(x=='A'){
         //display effect
         path = 1;
      } else if(x=='B'){
         //display effect
         path = 2;
      }
   }
Compares x to a set of valid answers. If it matches a value, it will set path to the appropriate value and display a message. If no valid answer is given, it will just ask for a new answer.
  return path;
}
Returns the value of path. This sends it back to the primary game loop (that first while loop) where the new value will be tested and a new function will be executed, thus continuing your game.

To add a path in the primary while loop (the first loop at the top) you would do something like this:
//previous code
} else if(path=='VALUE'){
   path = gamePathXXX();
} ...
Then you would create the function to go with it:
function gamePathXXX()
   var path = 0;
   while(path==0){
      x = prompt;
      if(x=='YES'){
         //display effect
         path = 'GoodResult';
      } else if(x=='NO'){
         //display effect
         path = 'BadResult';
      }
   }
   return path;
}
#17
Flash & Flash Accessories / Programming Fast Ask
June 27, 2013, 03:37:21 PM
Quote from: MightyBooshClock;1952741Ok, so I made the curly brackets into colons, without changing the things into if/else statements for now. But now it just runs through each case no matter what I answer.

http://www.codecademy.com/courses/javascript-beginner-en-ZA2rb/0/4

There's the website that I'm using it on. And here's the updated code:

As you can see, no matter what you reply with, it just keeps going to the next case in the code.  What would be causing that?

That is because you are not using the keyword break; to exit the switch statement when youre done using it.

Also I implore you to not use nested switches ever and that you make an effort to understand and implement the following code which I previously constructed. It will allow for much easier alterations to your story, the addition of new paths, encourages good coding practices, and is much easier to maintain and understand overall.

var alive = true;
var path = gamePath0();
while(alive){
   if(path==1){
      path = gamePath1();
   } else if(path==2){
      //Display Game Over
      alive = false;
   }
}

function gamePath0()
   var path = 0;
   var x;
   while(path==0){
      x = prompt;
      if(x=='A'){
         //display effect
         path = 1;
      } else if(x=='B'){
         //display effect
         path = 2;
      }
   }
   return path;
}
#18
General Discussion / Clocks in College
June 27, 2013, 02:21:48 AM
I graduated last year with a Bachelor of Science in Computer Science.
#19
Flash & Flash Accessories / Programming Fast Ask
June 26, 2013, 05:00:19 PM
Quote from: MightyBooshClock;1952607Got another one for ya! So this is just a little choose your own adventure thingy
When I try to run it it says "SyntaxError: Unexpected token {"

Well that looks like its probably Javascript. It seems that you aren't clear on how to implement a switch/case structure. The proper way to use a switch statement is as follows:

switch (variable_to_compare) {
   case some_value_1:
      //execute code
      break;
   case some_value_2:
      //execute code
      break;
   default:
      //execute code
}
Each case starts with a value which you check against the variable you designated in the switch(). If that variable is equal to that value, it starts to execute all the code after it. When you want it to stop executing code, you add break; which will exit the switch statement. Optionally, you can use a default: case, if there are no matches to any of the case statements, it will execute the code in the default case block.

In your code, I see that after your case statements you put a { when it should be a :. You also shouldn't put switch statements inside switch statements. In general, you should also use an if/else structure for these kinds of things anyway as switch statements are messy and hard to maintain and for others to understand.

However if you're making a choose your own adventure you would probably want a structure like this:

var alive = true;
var path = gamePath0();
while(alive){
   if(path==1){
      path = gamePath1();
   } else if(path==2){
      //Display Game Over
      alive = false;
   }
}

function gamePath0()
   var path = 0;
   var x;
   while(path==0){
      x = prompt;
      if(x=='A'){
         //display effect
         path = 1;
      } else if(x=='B'){
         //display effect
         path = 2;
      }
   }
   return path;
}
#20
General Discussion / I apologize.
June 25, 2013, 05:18:25 PM
I never had strong feelings on this one way or another. I didn't think you stole it, and it really isn't that hard to beleive Paypal, the most bullshit and evil money sucker on the internet, would cause something like this. At least you came by to say something.