Newgrounds.com — Everything, By Everyone.

Checking login status…

USERNAME:

PASSWORD:

Logging in…

Logged in as:
.
Logging out…
Inbox My Account Log Out


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: 'kalmana'

We found 18 matches.


<< < > >>

Viewing 1-18 of 18 matches.

1.

None

Topic: making a enemy face your character.

Posted: 02/22/08 04:58 PM

Forum: Flash

Im creating a basic "dont let this touch the mouse" type game, the enemy used to be a circle, but its eventually going to become a missile of some kind.

this is what i currently have:
http://media.putfile.com/Enemy-change

This is the code for the enemy (sorry, i dont know how to do the code text thing)

ENM.onEnterFrame = function()
{
var totalXDistance = _root.BOB._x - this._x; // the horizontal difference between the 2 symbols.
var totalYDistance = _root.BOB._y - this._y; // the vertical difference
var totalDistance = Math.abs(totalXDistance) + Math.abs(totalYDistance); // the 2 above combined
var xPercent = totalXDistance / totalDistance; // horizontal percentage used to distribute speed
var yPercent = totalYDistance / totalDistance; // same, but for vertical
this._x += this.speed * xPercent; // adding a horizontal distributed speed to the enemy
this._y += this.speed * yPercent; // same but for vertical

if(this.hitTest(_root.BOB))
{ // check and see if they collided)
delete ENM.onEnterFrame
clearInterval(countID);
ENM.speed = 0
restart._x = 259.4
restart._y = 242.4
}

}

Your character is called BOB...how can i made the point of the triangle follow bob?


2.

None

Topic: slowly following a enemy...

Posted: 02/20/08 11:03 PM

Forum: Flash

At 2/20/08 08:12 PM, ryratt wrote: Hi again, wasn't trying to imply anything about your experience, just saying it's not required you use gets & sets . Here's a quick algorithm I came up with to address your scenario.

Hope this helps. It should get you started.

Yeah, that helps a lot. I'm going to tweek it a bit though since i like adding my own touch to codes, but this is a great base


3.

None

Topic: slowly following a enemy...

Posted: 02/20/08 06:58 PM

Forum: Flash

At 2/20/08 06:48 PM, ryratt wrote: also, I can't remember which versions of AS prior to AS3 had getters and setter functions and which didn't, but if you have them, using them to get the right and bottom side of a movieclip makes everything a lot easier and cleaner. you could make a get function called "_right" for your clip and in it

return movie._x + movie._width;

You'd do the opposite for a setter function. Don't want to bog you down with this kinda stuff if you're new, but if you get tired of working with long equations, you might try it.

im not that new, and i believe AS2 (which i have) has the getters and setter. Ill fool around with the getters and setters functions and see how it works


4.

None

Topic: slowly following a enemy...

Posted: 02/20/08 06:47 PM

Forum: Flash

At 2/20/08 06:38 PM, ryratt wrote: Well, ok, so you're aware of what's happening, what is your objective? You want him to be next to bob? If so you'd do something like:

ENM.onEnterFrame = function()
{
// uncomment whichever one you want.
// ENM._x = BOB._x - ENM._width; // this will put him to the left
// ENM._x = BOB._x + BOB._width; // this will put him to the right
// ENM._y = BOB._y - ENM._height; // the will put him above
//ENM._y = BOB._y + BOB._height; // this will put him below
}

if you want him to follow slowly, you'll have to divide up the distance between the two and subtract or add that result on each enterFrame instead.

that isn't exactly what i was looking for, but i can still use that code...

Let me word it a bit different...

Lets say that ENM is a heat seeker that comes out of the bottom left courner of the screen. I want ENM to go to BOB who is at the top middle of the screen.


5.

None

Topic: Dire dire Docks mp3.

Posted: 02/20/08 06:21 PM

Forum: Flash

At 2/20/08 06:16 PM, Gaaz wrote:
At 2/20/08 06:08 PM, Madminifig wrote: Google for two more hours.
If you weren't going to help then why did you bother posting?

Heres a site that you can try

http://downloads.khinsider.com/


6.

Misunderstood

Topic: slowly following a enemy...

Posted: 02/20/08 06:20 PM

Forum: Flash

ive always had trouble trying to get a enemy to follow a character.

Lets just say that you are BOB and the enemy is ENM.

right now, its set up like:

ENM.onEnterFrame = function()
{
this._x += BOB._x
this._y += BOB._y
}

And i know...it epicly fails, because it pretty much just keeps adding the number that BOB has in the y/x values.

Also, my other try doesn't work...

ENM.onEnterFrame = function()
{
ENM._x = BOB._x
ENM._y = BOB._y
}

Im aware that it literly sets the x & y values to BOBs...

so can someone give me a tip T_T


7.

None

Topic: platformer

Posted: 02/19/08 01:33 AM

Forum: Flash

At 2/18/08 11:47 PM, junipe wrote: ... thanks and your right but what other games can i make that are simpilar and dont suck?

well, you should just start basic...the games might suck at first, but then you can go back and improve them.

Heck, the first game i made was a simple adventure game that was pretty much "Push this button go here...push that button go there" The code for a game like that is very simple, but its stuff that will help you later on.


8.

None

Topic: Voice Software

Posted: 02/18/08 06:27 PM

Forum: Flash

At 2/18/08 06:21 PM, willobeen wrote:
At 2/18/08 06:12 PM, kalmana wrote:
Thanks, that helped
You could also try doing the voices yourself using Audacity
but you need a good, expensive microphone to do that ;)

na, i just use a 20 doller mic i found at Wall-mart :) (which is now pretty banged up...but still works fine)


9.

None

Topic: Voice Software

Posted: 02/18/08 06:12 PM

Forum: Flash

At 2/18/08 05:36 PM, alstertheonly wrote:
At 2/18/08 05:01 PM, CaptinChu wrote: AT&T Text to Speech is a decent online tts. In fact, it's the best I've ever heard so far. If you want an unlimited one, try Speakonia.
Thanks, that helped

You could also try doing the voices yourself using Audacity


10.

None

Topic: As2 Flash Effects: Optimized

Posted: 02/17/08 09:49 PM

Forum: Flash

At 2/17/08 09:45 PM, LesPaulPlayer wrote: no it wont work because it uses filters. Take out the filters and should work. The static effect wont look good though.

meh, ive been planning on upgrading to Flash 8 soon anyways. So ill probably tuck the AS away untill i upgrade


11.

None

Topic: As2 Flash Effects: Optimized

Posted: 02/17/08 09:42 PM

Forum: Flash

Will this stuff work with MX? i tried it earlier but i couldn't get it to work.


12.

None

Topic: are you good at AS?

Posted: 02/15/08 02:11 PM

Forum: Flash

At 2/15/08 02:07 PM, plant-eating-cat wrote: Hey people need a little help with my upcoming flash, And the idea is when you press the letter it goes to the frame that i expect it to so it says the letter. i have recorded all of the voices so when it goes on the frame it says it. heres my code

symbol=symbol 10 , layer 2 , frame=4 |Unexpected "}" encountered | }

please help and tell me how to edit it so its right

well, it looks like part of the problem is in a different frame. Id check and make sure you dont have any extra }'s


13.

None

Topic: moving platform question.

Posted: 02/14/08 06:20 PM

Forum: Flash

At 2/14/08 06:02 PM, Ertyguy wrote: so you want it that when you touch the platform then get off you get sent back to the start?
if i got it right put this on your platform

onClipEvent(load){
on = false;
}
onClipEvent(enterFrame){
if(this.hitTest(_root.player)){
on = true;
}
if(on){
if(!this.hitTest(_root.player)){
_root.player._x = 16;
_root.player._y = 192;
on = false;
}
}
}

yeah, thats working great thanks. im just going to tweek the code a bit so if i get onto the other platform, i wont be sent back to start.

thanks for the help


14.

None

Topic: moving platform question.

Posted: 02/14/08 05:56 PM

Forum: Flash

At 2/14/08 05:48 PM, Ertyguy wrote: could you explain more i don't quite understand what your trying to say

Well, the attached picture is the scene im talking about.

I want it so if you push the button, the platform moves (works)
but, how it is right now, if the player gets onto the platform over the black area, he is sent back to start.

I want to be able to walk onto the platform without being sent back to start. but if i walk off of the platform, be sent back to start.

moving platform question.


15.

Misunderstood

Topic: moving platform question.

Posted: 02/14/08 05:43 PM

Forum: Flash

ive been trying to get a small moving platform in my game that wont have the effects of the floor.
like:

onClipEvent(enterFrame).
{
if(this.hitTest(_root.player))
{
_root.player. _y = 192.0;
_root.player._x = 16;
}
}

Is it possible for me to make a platform that can go across the floor without sending the player back to start?


16.

None

Topic: power ups help...

Posted: 02/02/08 06:12 PM

Forum: Flash

thanks for your help


17.

None

Topic: power ups help...

Posted: 02/02/08 05:41 PM

Forum: Flash

At 2/2/08 05:37 PM, webcrawler559 wrote:
well, that would work, but there are better ways to detect a hit- what shape are these "powerups", if there circular- I have a far better alternative- but if there angular, hitTest() is the best option...

Right now they are circular.


18.

Resigned

Topic: power ups help...

Posted: 02/02/08 04:24 PM

Forum: Flash

im trying to come up with some ways to add power ups to some of the games that im making. I have a good understanding of action script and im using MX 2004. Right now, i have a small input text box that when i enter a phrase into it, it activates the power up. would something like:

rockets.onEnterFrame = function ()
{
if player.hitTest(this._x, this._y, true))
{
gun++
}
}

RIght now i have gun = 0. and then if gun = 1 the gun gets stronger and such..

Would something like that work, or can i have some tips?


All times are Eastern Daylight Time (GMT -4) | Current Time: 05:41 PM

<< < > >>

Viewing 1-18 of 18 matches.