iCheese
209 posts
|
Topic: Serious Discussion /
Abortions- Are they really a bad thing?
Originally posted by Jijij2:
A story from givesmehope.com: A sixteen year old girls got pregnant due to a rape case, thier parents threatened to disown her if she didnt get an abortion, she still refused… her bestfriend was 18 and adopted her leagely. As soon as they were both old enough they got married with thier new baby. 15 years later and i love both my mom and dad.
Nice emotional appeal there.
|
|
|
iCheese
209 posts
|
|
|
|
iCheese
209 posts
|
Topic: Serious Discussion /
Telekinesis?
A. Not that I know of.
B. No, no proof for it.
C. See B.
D. See B.
|
|
|
iCheese
209 posts
|
Topic: Off-topic /
what if vampires where real?
Same as usual?
‘the sun causes them to burn’
|
|
|
iCheese
209 posts
|
Topic: Serious Discussion /
if the south had won the civil war
Originally posted by lordal91:
first of all. we would be the same familys and people so we would be extremely close. second. we would depend on each others trade. and third. we would have the advantage of an abundant econamy through trade and not being the same country. oh. and slavery would disapear with the invention of the tractor.
if one of our econamys was in trouble the other could help them out.
Baseless statements are baseless.
|
|
|
iCheese
209 posts
|
|
|
|
iCheese
209 posts
|
Topic: Serious Discussion /
Just a hypothetical question concerning the matter of war.
Nukes aren’t really anything to fall back on unless your goal was to commit genocide on both sides, to be honest.
|
|
|
iCheese
209 posts
|
|
|
|
iCheese
209 posts
|
Topic: Game Programming /
Removing references to blur filter
This is to do with deleting things once off screen, and though I haven’t tested it yet, I’m pretty sure most of it is fine except the part where when something goes off screen it gets deleted, and I’m not sure if I’m removing references to the cloud and filters correctly.
package{
import flash.display.*
import flash.events.*
public Class Main extends MovieClip{
public var clouds:Array;
public function Main():void{
stage.addEventListener(Event.ENTER_FRAME, frameHandler);
}
public function frameHandler(e:Event):void{
cloud(Math.random);
moveClouds();
for(var i:int = 0; i<=clouds.length;i++){
if(clouds[i].x >= 550){
clouds[i].filters = [];
this.removeChild(cloud[i])
clouds[i] = null;
clouds = clouds.splice(i,1);
}
}
}
public function moveClouds():void{
for(var i:int = 0; i<=clouds.length;i++){
clouds[i].x -= clouds[i].scale*10;
}
}
public function cloud(n:Number):void{
if(n>0.1){
public var cloud:Cloud = new Cloud;
cloud.scaleX = cloud.scaleY = Math.random();
cloud.speed = cloud.scaleX;
blur = new BlurFilter(cloud.scaleX*2,cloud.scaleY*2);
cloud.filters = [blur];
clouds.push(cloud);
}
}
}
}
|
|
|
iCheese
209 posts
|
Topic: Game Programming /
What frame rate do you use?
24, since that’s the usual point at which the average human eye can’t detect the difference.
|
|
|
iCheese
209 posts
|
Topic: Game Programming /
Event on Mouseover (as3)
Change ‘MouseEvent.CLICK’ to ‘MouseEvent.MOUSE_OVER’.
|
|
|
iCheese
209 posts
|
Topic: Serious Discussion /
If a Tree Falls in the Forest Does it make a sound?
Originally posted by Pimgd:
OBJECTION!
kirdaiht, you stated, that
Originally posted by kirdaiht:
the sound is made because the air pressure above the tree is lower then the pressure beneath it. this causes wind to blow around the tree and makes a whistling noise.
If I look at your testimony, I can see a clear contradiction!
The sound you describe, is caused by “wind that blows around the tree”, and NOT the falling of the tree!
Therefore, the tree itself, DOES NOT make a sound when falling in a forest!
Yes, I played too much phoenix wright.

You can never play enough Phoenix Wright/Apollo Justice/Whatever. =P
On a serious note, this has turned into the most overly complex debate I’ve seen.
|
|
|
iCheese
209 posts
|
Topic: Serious Discussion /
About Russia...
Originally posted by SithDoughnut:
Originally posted by BnBn:
Originally posted by SithDoughnut:
Originally posted by BnBn:
Originally posted by SaintAjora:
That tells me how he knows, not how you know.
I gave his post the benefit of the doubut because he’s talking about a real country.
Europe? That’s a continent.
Sure?
Yes. I live in it.
So do I =D
|
|
|
iCheese
209 posts
|
Topic: Game Programming /
As2 Problem =(
Or use the Math.min() Method.
|
|
|
iCheese
209 posts
|
Topic: Serious Discussion /
Which is currently the better country: Russia or the U.S?
Originally posted by NatsukaTakahashi:
i live near Russia so i would definately side with them……..and we all know the U.S is the only country stupid enough to start a global nuclear war so my mind is settled GO RUSSIA
1. American people FAIL (obesity, love of call of duty style games, stupidity, being so intrusive (having military bases in almost every fucking country on Earth) inventing the atom bomb and using it (what bastards),hillbillies…enough said, etc etc)
2. Russian people WIN (turning the tide of WW2 in stalingrad, standing up to the biggest threat to world peace (America), being tough-men (hence why they are all gangsters according to previous posts), the AK-47 and other Kalashnikov variants being the most famous gun in the world.
Obesity – Global problem.
COD – Why is that a bad thing?
Stupidity – I’d say it’s more ignorant than stupid.
Intrusive – Agree’d
Inventing & Using A-bomb – Joint effort by UK, US, Canada, France etc, Plenty of countries have used A-bombs. Just not for War-purposes.
Before you ask, no, I’m not American.
|
|
|
iCheese
209 posts
|
|
|
|
iCheese
209 posts
|
Topic: Game Programming /
This code ends up with error 1084...
Also, by putting the declaration of a variable in a function, it means that it only exists in that function, so you won’t be able to use it anywhere else.
|
|
|
iCheese
209 posts
|
Topic: Game Programming /
Artificial Intelligence
I was assuming he was making a side scroller, and you could just give the function an argument and return the x or y according to that.
|
|
|
iCheese
209 posts
|
Topic: Game Programming /
This code ends up with error 1084...
Get rid of the semi-colon after “var Score”.
Also, have the “var Score” part outside of the function, and have it say “Score += 20” in the function.
|
|
|
iCheese
209 posts
|
Topic: Game Programming /
Artificial Intelligence
//Assuming you only want it to attack when it's in front
//Syntax might be off
function getDistanceToPlayer(){
return this.x - this.(parent as MovieClip).ship.x //Assumes the game is side scrolling, and the ship is in the same
//parent movieclip.
}
|
|
|
iCheese
209 posts
|
Topic: Game Programming /
How to switch MC's.
It’s really quite simple.
BTW, my example would require you to make the Flag class yourself, since I have the patience of…me.
//Note, the following is in AS3, and uses classes (Or it should be) =p Should be easy enough to port by someone //that knows AS2
package{
import flash.display.*
import flash.events.*
import flash.utils.*
public class MainChar extends MovieClip{
var delayTimer:Timer = new Timer(5000);
var checkTimer:Timer = new Timer(33);
var detectedFlag:Flag = new Flag();
public function MainChar():void{
checkTimer.addEventListener(TimerEvent.TIMER, checkHit);
checkTimer.start();
}
public function checkHit(e:TimerEvent):void{
for(var i:int = 0;i <= flags.length - 1;i++){
if((Math.abs(this.x - flags[i].x) <= 50)
|| (Math.abs(this.y - flags[i].y) <= 50) ){
checkTimer.stop();
checkTimer.removeEventListener(TimerEvent.TIMER, checkHit);
detectedFlag = flags[i]
delayTimer.addEventListener(TimerEvent.TIMER, captureFlag);
delayTimer.start();
break;
}
}
}
public function captureFlag(e:TimerEvent):void{
detectedFlag.captured = true;
}
}
}
|
|
|
iCheese
209 posts
|
Topic: Serious Discussion /
2nd Korean War??
Originally posted by OmegaKaiSi:
Ha. NK has some man power, but not nearly enough Nuclear Wepons to destroy a superpower such as the U.S, England, Russia, or China.
facepalm
UK, not England.
|
|
|
iCheese
209 posts
|
Topic: Game Programming /
text adventure in AS3 help
Also, instead of using multiple or operators, I suggest using Regular Expressions.
So instead of:
if(i18.text == “look room” || i18.text == “look at room”){
}
Use:
var correctText:RegExp = /^look (at)? room$/
if(correctText.test(i18.text)){
}
|
|
|
iCheese
209 posts
|
Topic: Serious Discussion /
NKorea has threatened the USA - Do you think Obama is too soft?
Yeah, you’ll definitly get to vaporise a country with no diplomatic difficulties…
|
|
|
iCheese
209 posts
|
Topic: Game Programming /
Bullets for the middle.[SOLVED(or something!) xD]
Just offset it by how many pixels you want.
missile.x = this.x + <offSetAmount>
|