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 - Bong Clock

#1
Flash & Flash Accessories / variable addressing.
February 28, 2010, 01:25:53 AM
n/m found a solution
#2
Flash & Flash Accessories / variable addressing.
February 28, 2010, 01:10:37 AM
is there a relative address like "this" that references the movie clip a movie clip with the AS is in?
#3
Flash & Flash Accessories / AS issues
February 27, 2010, 10:53:17 PM
Quote from: RenegadeClock;1734435Doesn't the M have to be capital in Math.round() ?

yes, yes it does. mystery solved.
#4
Flash & Flash Accessories / AS issues
February 26, 2010, 08:55:10 PM
ok I've fixed it. at the time my internet wasn't working and I wasn't sure if random() returned integer values. so I erred on the side of caution and used the math.round(). The solution was to drop it. Though it works i'm not sure exactly why math.round() made everything break.
onClipEvent (load) {
this._rotation = random(3)*90;
}
onClipEvent (enterFrame) {
if (this._rotation == 0) {
if (this.hitTest("_root.point") && Key.isDown(Key.LEFT)) {
this._alpha = 0;
}
}
if (this._rotation == 90) {
if (this.hitTest("_root.point") && Key.isDown(Key.UP)) {
this._alpha = 0;
}
}
if (this._rotation == 180) {
if (this.hitTest("_root.point") && Key.isDown(Key.RIGHT)) {
this._alpha = 0;
}
}
if (this._rotation == 270) {
if (this.hitTest("_root.point") && Key.isDown(Key.DOWN)) {
this._alpha = 0;
}
}
}

here's the final code. it's completely self contained and can be simply copy/pasted into any movieclip I want to use
#5
Flash & Flash Accessories / AS issues
February 26, 2010, 08:47:37 PM
so the problem was that by using "=" in my if statements I was actually issuing a  command to make the LEFT side of the = equal to the RIGHT side. replacing the appropriate "=" with "==" fixed the always pointing down problem. now however they aren't rotating at all.
I've even tried moving the rotation command to the frame in the movieclip and giving each of the arrows their own reference name.
a._rotation = math.round(random(4))*90;
b._rotation = math.round(random(4))*90;
c._rotation = math.round(random(4))*90;
d._rotation = math.round(random(4))*90;

so why could this suddenly stop working?
#6
Flash & Flash Accessories / AS issues
February 26, 2010, 08:23:14 PM
Quote from: Satellite Clock;1734357dont use Math.round() just use round() pretty sure that works

you win the day. thanks.

EDIT: never mind it didn't work. fuck you.
#7
Flash & Flash Accessories / AS issues
February 26, 2010, 06:32:26 PM
what might be even more helpful is if someone knows a simpler way to do it.
#8
Flash & Flash Accessories / AS issues
February 26, 2010, 06:26:08 PM
So I'm trying to make sort of a guitar hero-esque minigame within a larger game I'm making.
currently there's 4 arrows that when loaded rotate a random direction. Then you have to press the corresponding direction whilst a pointer is colliding with them. the collision and pressing works and the rotation works. the problem is when they're together all the arrows point down.

actually while experimenting right this second i've discovered that even without any roation commands the arrows point themselves down.

onClipEvent (load) {
this._rotation = Math.round(random(4))*90;
}

onClipEvent (enterFrame) {
if (this._rotation=0) {
if (this.hitTest("_root.point") && Key.isDown(Key.LEFT)) {
this._alpha = 0;
}
}
if (this._rotation=90) {
if (this.hitTest("_root.point") && Key.isDown(Key.UP)) {
this._alpha = 0;
}
}
if (this._rotation=180) {
if (this.hitTest("_root.point") && Key.isDown(Key.RIGHT)) {
this._alpha = 0;
}
}
if (this._rotation=270) {
if (this.hitTest("_root.point") && Key.isDown(Key.DOWN)) {
this._alpha = 0;
}
}
}

this code is on each arrow to be rotated and collided with. with the exception of the pointer moving to the right it's the only AS in the whole movie.
#9
Flash & Flash Accessories / ActionScipt Help
November 30, 2009, 08:40:59 PM
I have a movie clip that rotates with the left and right buttons and I'd like it to move it's relative forward and backward when up and down are pressed. I remember being able to do it but I just can't remember how.
#10
General Discussion / Josh Bedn Magemix
April 16, 2009, 05:31:31 PM
Quote from: TequilaClock;1561811I don't care how old is your sig, it is still one of my all time favorites.

A constant reminder of the fads of old.


seriously i need this song or i'll go crazy.
#11
General Discussion / Josh Bedn Magemix
April 16, 2009, 04:08:52 PM
anyone have the josh Bedn megamix? I checked NG but didnt find it.
#12
Pokemon Stadium / Hey Clocks, I got a favor to ask you.
September 12, 2008, 05:35:46 PM
Quote from: MSPaintClock;1401569Because I'm poor!

craig's list is free
#13
Pokemon Stadium / Hey Clocks, I got a favor to ask you.
September 12, 2008, 05:35:25 PM
#14
Pokemon Stadium / Hey Clocks, I got a favor to ask you.
September 12, 2008, 05:26:20 PM
why not use craig's list?
#15
General Discussion / I found Bong Clock's password
April 19, 2008, 05:20:59 AM
Quote from: MonsterMunchClock;1285575BLUFF

>_>
no seriously. i know his password. i'm uhh. jeez not lying. and even if i were. oyu uh...couldn't prove it.
#16
General Discussion / I found Bong Clock's password
April 19, 2008, 05:07:00 AM
discuss
#17
Comedy Goldmine / I'm not going to be on for a while
November 13, 2007, 03:44:02 PM
Quote from: BunnyClock;1095026okay thanks for this fine contribution we hadn't established this already!

No I don't think we have. While the issue has been addressed I do not believe we have quite discovered just how ignorant this woman truly is. What we need are more facts. Other situation where this woman has been stupid, preferably a video documentary.
#18
Comedy Goldmine / I'm not going to be on for a while
November 13, 2007, 10:58:46 AM
Quote from: SgtAngelClock;1094717No. I was on the phone with him and she was still yelling 'that's sick' in the background. You people are missing the point- forget about the fucking police.

but if we forget about the police logical progression dictates that we dwell on how fucking stupid his mom is. from there we dwell on what a pussy he is for caving.
#19
Comedy Goldmine / I'm not going to be on for a while
November 13, 2007, 03:16:09 AM
LOL INTERNET LAWSUITS
#20
Pokemon Stadium / I make comics sometimes
November 08, 2007, 07:13:04 AM
did you ever get the randomizer to work?