You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!

Author Search Results: 'PHL-Himself'

We found 127 matches.


<< < > >>

Viewing 1-30 of 127 matches. 1 | 2 | 3 | 4 | 5

1.

None

Topic: hit test object question

Posted: 12/17/09 07:58 AM

Forum: Flash

I'm very new to actionscript and this is my first try for a game

Anybody knows how to make my ball bounce when they hit a ufo like in the example pic
(it's kinda like a blockbreaker game)

the code is

[code]// Globale variabelen plaatsen
var xSpeed:int;
var ySpeed:int;
var ufoXSpeed:int = 5;
var ufoYSpeed:int =5;
var score:uint;
var tank:Tank;

init();

// De init functie ----------------------------------------
function init():void
{
// plaats de paddle op de stage
zetTank();
// plaats de paddle op de stage
zetBal();
// plaats de Ufo op de stage
zetUfo();
// Functie als de Ufo's geraakt worden
raakUfo();
// luisteren naar het keydown event
stage.addEventListener(KeyboardEvent.KEY _DOWN, verplaatsTank);
}

// Functie om de paddle te zetten ------------------------
function zetTank():void
{
// nieuwe instantie van de paddle aanmaken
tank = new Tank();
// de paddle centraal positioneren tegen de rechterzijde van de stage
tank.x = stage.stageWidth/2;
tank.y = stage.stageHeight - (tank.height /2);
// de paddle toevoegen aan de stage
addChild(tank);
}

// Functie om de bal te plaatsen --------------------------
function zetBal():void
{
// een nieuwe instantie van bal aanmaken
var bal:Bal = new Bal();
// de bal in het centrum van de stage positioneren
bal.x = stage.stageWidth/2;
bal.y = stage.stageHeight/2;
// de bal toevoegen aan de stage
addChild(bal);

// een willekeurige snelheid aanmaken voor de x en y
xSpeed = Math.round(Math.random() * 10 + 5);
ySpeed = Math.round(Math.random() * 10 + 5);

// EventListener voor de bal te laten bewegen
bal.addEventListener(Event.ENTER_FRAME, animeerBalHandler);
}

// Functie om de paddle te bewegen ------------------------
function verplaatsTank(event:KeyboardEvent):void
{
//controleren welke key ingedrukt werd
if(event.keyCode == 37)
{
//paddle mag niet buiten de stage bewegen
if(tank.x > (0 + tank.width/2))
{
tank.x -= 10;
}
}
if(event.keyCode == 39)
{
if(tank.x < (stage.stageWidth - tank.width/2))
{
tank.x += 10;
}
}
}

// Functie om de bal te laten bewegen ----------------------
function animeerBalHandler(event:Event):void
{
// het element dat de event oproept = event.currentTarget
var bal:Bal = event.currentTarget as Bal;

// de bal bewegen door de x en y positie op te tellen met de aangemaakte xSpeed en ySpeed
bal.x += xSpeed;
bal.y += ySpeed;

// controleren of er een botsing is tegen de linkerzijde
if(bal.x <= bal.width/2)
{
xSpeed = Math.round(Math.random() * 10 + 10);
}
// tegen de bovenzijde
if(bal.y <= bal.height/2)
{
ySpeed = Math.round(Math.random() * 10 + 10);
}
// tegen de onderzijde
// ySpeed moet hier negatief worden want de bal moet opnieuw naar boven
if(bal.x >= 800 - bal.width/2)
{
xSpeed = Math.round(Math.random() * 10 + 10) * -1;
}

// opmerking: een botsing tegen de rechterzijde moet hier iet gecontroleerd worden
// aangezien de bal dan niet mag terugkaatsen maar moet opgevangen worden met de paddle

// controleren of de bol voorbij de lijn van de tank is
if(bal.y + bal.height/2>= tank.y)
{
// controleren of er een hittest is met de tank
if(bal.hitTestObject(tank))
{
// de richting voor de y positie wijzigen
ySpeed = Math.round(Math.random() * 10 + 10) * -1;
}
else
{
// game over: niet meer naar het ENTER_FRAME event luisteren
bal.removeEventListener(Event.ENTER_FRAM E,animeerBalHandler);
// de bal van de stage verwijderen
removeChild(bal);
}
}
}

// Functie om de Ufo's op de stage te zetten --------------
function zetUfo():void
{
var xPos:Number = 0
do
{
var ufo:Ufo = new Ufo();
ufo.x = xPos + 100;
ufo.y = 50;
addChild(ufo);
// Beweeg de Ufo
ufo.addEventListener(Event.ENTER_FRAME, beweegUfoHandler);
xPos = xPos + ufo.width;

}
while(xPos < stage.stageWidth - ufo.width)
}

// Functie om de Ufo's te laten bewegen -------------------
function beweegUfoHandler(event:Event):void
{
// het element dat de event oproept = event.target
var ufo:Ufo = event.target as Ufo;

// ufo bewegen
ufo.x = ufo.x + ufoXSpeed;
ufo.y = ufo.y + ufoYSpeed;

// botsting tegen de onderzijde opvangen
if(ufo.y >= 300 || ufo.y < ufo.height / 2)
{
ufoYSpeed = ufoYSpeed * -1;
}

// rechterzijde
if(ufo.x >= 800 - ufo.width/2 || ufo.x < ufo.width / 2)
{
ufoXSpeed = ufoXSpeed * -1;
}
}

// Functie als de Ufo's geraakt worden --------------------
function raakUfo():void
{

}[/code]

the code has to come in the last function 'raakUfo'

hit test object question


2.

None

Topic: cs3 vs cs4

Posted: 12/15/09 08:06 AM

Forum: Flash

I like the Ps version of CS3 more than CS4
but the whole package in CS4 is a bit more intresting to use imo

go with CS4


3.

None

Topic: I've got this virus.

Posted: 12/14/09 08:19 AM

Forum: Where is / How to?

Ad blocker addon in FF mostly does the trick

are you using IE or safari?


4.

Elated

Topic: NG top medal point users list

Posted: 12/14/09 07:52 AM

Forum: Where is / How to?

Just wait till I have some more freetime

I'll gain 6000 more points when that happens and I'll claim the top spot
Yeah!!

PS: prolly not, but hey, it's almost christmas, miracles can happen XD


5.

Elated

Topic: Newgrounds Medals - Games and Tips

Posted: 12/12/09 11:59 AM

Forum: Where is / How to?

it's a really challenging game, but it's fun!
Really digging it so far, trying to get all gold on the medium section now

tried hard for one time and when I saw I suddenly bursted into flames, I was like "you cannot be serious, this is gonna be hard"

great game :D


6.

Elated

Topic: NG top medal point users list

Posted: 12/10/09 04:39 AM

Forum: Where is / How to?

it's just insane how many medals the top players have

if NG keeps this up, they'll be over a million points one day


7.

None

Topic: Scouted?

Posted: 12/10/09 04:36 AM

Forum: Where is / How to?

also if you ever publish some art work, don't ask to be scouted as it can work against you ;)

keep that in mind


8.

None

Topic: Flash Tips

Posted: 12/01/09 07:58 AM

Forum: Flash

There are some tutorials on this site about using flash, I don't know the specific link though

Maybe another member will find something


9.

Winking

Topic: Think before submitting.

Posted: 11/25/09 02:09 PM

Forum: Where is / How to?

well spinning eyes in a car for a beginner in flash is quite impressive

you have to understand that some people just got their hands on flash and want to contribute something to this site, even though it's most likely going to be blammed

not everyone puts the bar as high as some of the more talented flash artists here ;)


10.

Elated

Topic: The Official Art Portal Q&a Thread

Posted: 11/25/09 07:10 AM

Forum: Where is / How to?

At 11/24/09 06:09 PM, TurkeyOnAStick wrote: That pic's totally fine yeah. You've used a standard font, but organised them in a careful, interesting, original and (oh yes) quality way.

thanks

well anyways I submitted it, I hope some might appreciate it and I hope the mods don't see it as some sort of spam, cause I'm really fond of typography


11.

Shouting

Topic: Wacom Photoshop Adobe Suite..help?!

Posted: 11/24/09 07:00 PM

Forum: Flash

Those things are very expensive for someone who's 14yo, so I'm guessing you would better start with a cheap wacom

you really have to get used to it when you use it for a first time (it's kinda goofy in the beginning to use it) but once you master it you can do amazing things with it

for PS, I would go with the CS3
I have used CS2, 3 and 4 for university and my fav of the bunch is CS3 because it's faster than 2 and CS4 is practically the same except for just some minor things that only real pro's use
+ the interface is kinda annoying in CS4 whilst CS3 was pretty pleasant to use


12.

Elated

Topic: Where's the front page toons?

Posted: 11/24/09 06:36 PM

Forum: Where is / How to?

Ow, I didn't know tom posted this as a movie here

thanks for posting this, it's great to rewatch it


13.

Winking

Topic: Is there a favorites list?

Posted: 11/24/09 04:53 PM

Forum: Where is / How to?

Besides the games and movies, the same goes for music and art
You can also add those to your favs :)


14.

Resigned

Topic: The Official Art Portal Q&a Thread

Posted: 11/24/09 04:44 PM

Forum: Where is / How to?

Okay it's about that typography question for the art portal

Typography is playing around with letters to get a final image (sending a message with just one or two words)
and make sure the harmony of the letters interacts with each other

like in this example I made once

is this allowed?

The Official Art Portal Q&a Thread


15.

Happy

Topic: Small art portal question

Posted: 11/24/09 04:03 PM

Forum: Art

Hiya, I'm just wondering if typography is allowed in the art portal

it's basically a drawing which consists out of letters and numbers
playing around with words and stuff

is it allowed here at NG?


16.

Elated

Topic: audio quality question

Posted: 11/14/09 12:12 PM

Forum: Flash

Thanks everybody, it worked

the editing of the kbps and the publish settings were a great help
Kudos to you people :)

Newgrounds just rocks with such a great community


17.

Resigned

Topic: audio quality question

Posted: 11/14/09 11:41 AM

Forum: Flash

okay I'm pretty new to flash and I'm the last time I put in some audio in flash, everything went perfect (196 kbps)

Today I started animating on another flash movie (making this one for fun) and I wanted to insert some audio I found at the good old audio portal

it's the clown song of death (which is 126kbps)
Now for some reason the quality is terrible when I test it in the swf file, whilst the last song I put in my latest movie had it's quality at it's best

I don't know how to improve the quality of sound in flash, I've tried to look for the answer and everytime it was the same answer, convert it to wav.file (but that's already been done and it still lacks of good quality when I test it)
How can I fix this?
any help is appreciated


18.

None

Topic: Wasteland

Posted: 11/05/09 08:18 PM

Forum: Art

Looks like my link in the first post for the vid was incorrect

it's this
Video of image
too bad we can't edit posts

At 11/5/09 07:47 PM, J-qb wrote: seriously that is way too many layers....

I know :D


19.

Winking

Topic: Avatars for forum?

Posted: 11/05/09 07:07 PM

Forum: Where is / How to?

Yeah, that's a good argument

I'm sure Tom had his reasons for this and I think you just named the most important one


20.

None

Topic: Avatars for forum?

Posted: 11/05/09 06:55 PM

Forum: Where is / How to?

Don't know if this is the right section but it's a question

why are the avatars on this forum just the symbols that show you which level you are?
wouldn't it be more helpful to recognize someone by a unique avatar (such as what they use for the avatars in the flash portal)
you kinda 'recognize' people faster

here we only see what level you are in your avatar (which can be confusing when several people with the same level are posting in the same thread)

just wondering how this comes?


21.

None

Topic: Wasteland

Posted: 11/05/09 06:51 PM

Forum: Art

A wargirl made from scratch

original size can be found in the art portal

For people that are intrested in how this image was made check it here

it's a 2.50 min video that shows you how it was made in photoshop CS3
Feel free to check it out, pretty please ;-)

Cheers

Wasteland


22.

Elated

Topic: Music edit program for flash?

Posted: 11/05/09 05:56 PM

Forum: Flash

Cool thanks a lot

At 11/5/09 05:54 PM, Xeptic wrote: what more could you ask for?

Free boobies :-3


23.

Resigned

Topic: Music edit program for flash?

Posted: 11/05/09 05:51 PM

Forum: Flash

Anyone knows a good music edit program?

mainly for mixing songs to eachother and maybe cutting them at several parts so they can fit movies made in flash a bit more?
I'm just new to this so any help is welcome :)


24.

None

Topic: .jpg to .gif?

Posted: 11/05/09 09:27 AM

Forum: Where is / How to?

At 11/4/09 11:56 PM, Nayhan wrote: Well if you have Photoshop you can open the image and click 'save as' and change it to a gif, and paint should work aswell it'll just be worse quality.

When it's for images for the web it's better to save with 'save for web' and then chose the gif option
Quality is high but the file size won't be that big ;)


25.

None

Topic: Newgrounds Medals - Games and Tips

Posted: 11/05/09 09:23 AM

Forum: Where is / How to?

I'm just wondering how come the people in the top list of game medals seem to have the fear unlimited medals unlocked (since that game got deleted from the medal games)

Man, it's been 3 weeks since I've been here since I was in the hospital and there are a lot of new games with medals out there
Got most of them yesterday and I'm trying to get some more this evening


26.

Happy

Topic: 'attaching' jigsaw puzzles

Posted: 11/04/09 06:13 AM

Forum: Flash

Okay thanks, I'll see if I can fix that issue this evening

Cheers


27.

None

Topic: 'attaching' jigsaw puzzles

Posted: 11/03/09 09:13 PM

Forum: Flash

Just made a jigsaw puzzle as a test in flash here

I'm pretty new to it (have only been using it for a week now)
and I wanted to know if anyone knows how to attach those pieces in the small boxes when you hover over it with your mouse?

any help would be appreciated


28.

Happy

Topic: How do you import the NG loader?

Posted: 10/31/09 02:49 PM

Forum: Where is / How to?

At 10/31/09 02:46 PM, reverend wrote: You get the NG preloader here. You just put it on the first frame of your movie and it should work; there is instructions inside of the .fla if you don't know what to do. Not to mention the Flash Forum where you should post all flash related question.

Okay thanks a lot
Since I'm new to flash I thought that forum was mostly about talking about flash programs and stuff
will keep it in mind to post flash related questions there in the future

Cheers and thumbs up for the link


29.

Questioning

Topic: How do you import the NG loader?

Posted: 10/31/09 02:41 PM

Forum: Where is / How to?

This question may have been asked before and I searched for it but there were too many things related to 'loader' and 'flash'

so I wanted to ask it here
I recently started to play around with Flash. Making few animations etc...
now my question is, how do you make sure when you submit the swf-file it has the NG loader in it? (the loader with the NG-tank)
Is there a file somewhere that we may use or do we have to create that ourselves?

I know, I'm a noob, but any help on this would be welcome

thanks in advance


30.

Crying

Topic: Ben Spurgin, 1977-2009

Posted: 10/24/09 07:12 AM

Forum: NG News

Loved your contributions to NG
It's sad you had to go at such a young age too

RIP Ben


All times are Eastern Standard Time (GMT -5) | Current Time: 01:27 PM

<< < > >>

Viewing 1-30 of 127 matches. 1 | 2 | 3 | 4 | 5