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: 'West-End-Pro'

We found 2,398 matches.


<< < > >>

Viewing 1-30 of 2,398 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 94480

1.

None

Topic: Looking for a Coder

Posted: 09/19/09 04:20 AM

Forum: Flash

I'm interested - PM me some more info on it.


2.

None

Topic: AS2 text weirdness

Posted: 09/18/09 11:25 AM

Forum: Flash

At 9/18/09 10:42 AM, shikamaru-nara wrote:
At 9/18/09 10:28 AM, West-End-Pro wrote: Show us some code.
On the main timeline's first (and only) frame;

var stupidNumber:Number = 50;

The the 'variable' property for the textbox was "_root.stupidNumber".

Give the textfield a different name.


3.

None

Topic: AS2 text weirdness

Posted: 09/18/09 10:28 AM

Forum: Flash

Show us some code.


4.

None

Topic: Programmer needed.

Posted: 09/18/09 04:19 AM

Forum: Flash

At 9/17/09 07:17 PM, Thundaboom16 wrote:
At 9/17/09 07:14 PM, zrb wrote: Examples of animations :\ ?
Screenies are a good start but how about some sprites (character, backgrounds, enemies...)?
Sure why not.

I will PM you with that stuff.

Or post it here...Then you might get more interest.


5.

None

Topic: i need an animation

Posted: 09/17/09 04:00 PM

Forum: Flash

And you can't do it because......


6.

None

Topic: platformer engine...

Posted: 09/16/09 04:30 PM

Forum: Flash

At 9/14/09 06:01 PM, Deskarano wrote: Help *coughs*...
Please. I've done everything I possibly could have... I searched everywhere. But none of it seemed to work... Maybe you can help me *coughs blood*. Here's what I need; do everything in your power to get me that information, before it's too late...
*Faints*

D'you need a doctor or something?


7.

None

Topic: As2 Or As3 ? Should I Change ??

Posted: 09/15/09 09:36 AM

Forum: Flash

At 9/15/09 09:29 AM, Draglino wrote: Now what did i do wrong ?? Can somebody explain ?? Error is this ;
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at MethodInfo-6()

Code tags are your friend.

var bulletArray:Array = new Array();
var turretspeed=12;

stage.addEventListener(MouseEvent.CLICK, fire);
function fire(event:MouseEvent) {
	turret.gotoAndPlay("shoot");

	var Bullet:bullet = new bullet();
	bulletArray.push(Bullet);
}

stage.addEventListener(Event.ENTER_FRAME , checkbullets);
function checkbullets(event:Event) {
	for (var i:int = 0; i < bulletArray.length; i++) {
		var b:MovieClip=bulletArray[i] as MovieClip;

		var bY=mouseY-turret.y;
		var bX=mouseX-turret.x;

		if (bX<0) {
			bangle+=180;
		}
		var bangle=Math.atan(bY/bX)*180/Math.PI;
		var radians:Number=bangle*Math.PI/180;
		var xChange=turretspeed*Math.cos(radians);
		var yChange=turretspeed*Math.sin(radians);
		b.x+=xChange;
		b.y+=yChange;

		if (b.x>550) {
			stage.removeChild(b);
			bulletArray.splice(i--, 1);
		}
	}
}

8.

None

Topic: As2 Or As3 ? Should I Change ??

Posted: 09/15/09 08:57 AM

Forum: Flash

At 9/15/09 08:43 AM, Draglino wrote: Where can i find good tutorials for as3? And how to make variables such as b_1, b_2 for each bullet... I tried to make

My friend just sent me this link - After a brief skim through it seems to go through as3 is general.

var count = 0;
var name = b+"_"+count;
bulletArray.push(name);

AS3 is clever, you don't need to assign a new name for each new "bullet", you just have to do:

var bullet:Bullet = new Bullet();
// Bullet is the linkage name of the bullet MC from the library
// set bullet properties.. x, y, rotation etc

bulletArray.push(bullet);

And then when you want to update the bullet(s), position or whatever, just loop through them like:

You'll have to do this everyframe, otherwise nothing will happen o:
var i:int = 0;
for(i = 0; i < bulletArray.length; ++i)
{
     var b:MovieClip = bulletArray[i] as MovieClip;

     // set properties, like..
    b.x++;
    b.y += 234567;

   // And to remove the bullet,
   stage.removeChild(b);
   bulletArray.splice(i--. 1);
}

Of course there are other ways, but this is the simplest for someone of your ability D:

Hope there aren't any errors.

9.

None

Topic: As2 Or As3 ? Should I Change ??

Posted: 09/15/09 08:07 AM

Forum: Flash

At 9/15/09 08:05 AM, Jin wrote: Use AS1.0 because old technology is better than new technology.

Just look at XP and vista.

But seriously, AS3 is superior to AS2 in almost everyway.

10.

None

Topic: programmer needed

Posted: 09/15/09 06:56 AM

Forum: Flash

At 9/15/09 06:44 AM, LeechmasterB wrote:
At 9/15/09 01:01 AM, samus802 wrote: i need a person that can make this:
No you don't.

Correction. He does. He's just not gonna get it.


11.

None

Topic: hittest help! (as2)

Posted: 09/14/09 05:05 PM

Forum: Flash

At 9/13/09 10:38 PM, hdxmike wrote: MC1 MC2 AND MC3 COULD ALL BE COPIES OF MC BUT THE HAVE DIFFERNT NAME S LIKE U AND ME AR BOTH HUMANS BUT DIFFERENT NAMES GET IT?

Calm down, hes trying to learn as2. Not how to TYPE IN CAPITAL LETTERS.

OH AND ALSO

on guy_mc i put this

onClipEvent(load){
gotkey = false
}
onClipEvent(enterFrame){
if(cango=true){
if(this.hitTest(_root.door_mc)){
_root.nextFrame();
}}}

if(cango == true)

you should cosider optimixzing your code

Are you kidding me? The best way is to learn the basics first, then improve it as time goes.

Picking holes is fun.

12.

None

Topic: actions 1.0-2.0 help

Posted: 09/14/09 04:55 PM

Forum: Flash

At 9/14/09 04:44 PM, ImpotentBoy2 wrote: onEnterFrame = null;

i'm pretty sure that cancels the function, put it before the go to's
if(clicked>=40){
delete onEnterFrame;
clicked = 0;
gotoAndStop(369);
}
Should work, may have to move the delete around.

13.

None

Topic: AS3 dynamic imports?

Posted: 09/14/09 04:22 PM

Forum: Flash

flash.utils.getQualifiedClassName

I have a feeling this is the sort of thing that you're looking for, but I'm really not sure. No harm in trying it :)


14.

None

Topic: Sound Effects!

Posted: 09/14/09 12:00 PM

Forum: Flash


15.

None

Topic: Side Scroller Tutorial

Posted: 09/13/09 11:43 AM

Forum: Programming

Wrong forum.


16.

None

Topic: Programming Day

Posted: 09/13/09 10:36 AM

Forum: Programming

At 9/13/09 07:33 AM, wreckages wrote:
At 9/12/09 10:42 PM, liaaaam wrote: Apparantly in Russia they just declared it as an official holiday.

I'll try celebrate by actually programming something.
screw that! bankers don't work on bankers holiday, todays our day off!

Bankers don't really work... they just screw everyone over.


17.

None

Topic: Vcam? D:

Posted: 09/11/09 03:11 PM

Forum: Flash

At 9/11/09 02:45 PM, flailthefox wrote:
At 9/11/09 02:18 PM, West-End-Pro wrote:
Download the vcam (Link, click on "Download vCam AS2 FLA", and add it to your flash file. Then drag it onto the stage, and give it the instance name "vcam".

The code above was just an example.
Ok, i did that, and used the little code snippet. it didnt do anything. ._.
heres the cpoy of the FLA. http://spamtheweb.com/ul/upload/110909/7 1156_Walk_in_the_park.fla

The code was an example - That means you don't copy and paste it, you have to change it yourself. Fla. Don't know why its doing that annoying bobbling thing.

I've put the v-cam code on the frame, not on the player.


18.

None

Topic: Vcam? D:

Posted: 09/11/09 02:18 PM

Forum: Flash

At 9/11/09 01:57 PM, flailthefox wrote:
At 9/11/09 01:17 PM, West-End-Pro wrote: Add it to the stage, then every frame set its x and y co-ordinates to that of the players. Simplez.

onEnterFrame = function(){
vcam._x = player._x;
vcam._y = player._y;
}

I quess you're using as2..
Yes, I am suing AS2. But what am i adding to the screen? a white box with the instance name Vcam?

Download the vcam (Link, click on "Download vCam AS2 FLA", and add it to your flash file. Then drag it onto the stage, and give it the instance name "vcam".

The code above was just an example.


19.

None

Topic: Vcam? D:

Posted: 09/11/09 01:17 PM

Forum: Flash

At 9/11/09 01:14 PM, flailthefox wrote: simplez. I'm making a flat kind of game. all you do is walk on it a bit. but i want the vcam so it follows the player, like you should think. Example: Your the character, and you walk across this part for a while. you want the vcam to follow :D.

Add it to the stage, then every frame set its x and y co-ordinates to that of the players. Simplez.

onEnterFrame = function(){
vcam._x = player._x;
vcam._y = player._y;
}
I quess you're using as2..

20.

None

Topic: [AS2] Programming Help

Posted: 09/11/09 01:10 PM

Forum: Flash

At 9/11/09 08:40 AM, Logidude wrote: Well really, I am asking for things I don't know how to do, for poeple to help me with.

Ok, lets see:

if (Key.isDown(Key.UP)) {
	if(!this.hitTest(_root.ground))
	{
		this._y -= speed2;
		this.gotoAndStop(2);
	}
}

Update the code that i pasted earlier with the above - It should be on line 19. If you want to change it so the player can't move through the black bar at all, it will get abit more complicated, but hopefully this is a good basis for you to start upon.


21.

None

Topic: [AS2] Programming Help

Posted: 09/11/09 07:11 AM

Forum: Flash

if(Key.isDown(Key.SPACE)) {
    var rand:Number = Math.round(Math.random()) ;

   if(rand == 0) {
      // attack 1
      this.gotoAndStop(frameNumber);
   }
   else if(rand == 1) {
     // attack 2
      this.gotoAndStop(frameNumber);
   }

  fight = true;
}

Should work.

Not tested.

22.

None

Topic: [AS2] Programming Help

Posted: 09/11/09 05:28 AM

Forum: Flash

At 9/11/09 04:46 AM, Logidude wrote: Can anybody help me? This is a game with game play like Castle Crashers or Portal Defenders.

Stop being so impatient.

At 9/11/09 04:31 AM, Logidude wrote: Hello. I need some help programming. I want to make it so that when I press the space bar it plays the attack (right now it is walking animation) once and then goes back to the standing animation.

You'll need a third frame in the "kid" MC, which will be the attack animation. On the last frame of the attack animation, put:

_root.player.fight = false;
_parent.gotoAndStop(1);

And replace the code you have on the "kid" MC, with:

onClipEvent (load) {
	var speed:Number = 7;
	var speed2:Number = 7;
	var scale:Number = _xscale;
	var fight:Boolean = false;
}
onClipEvent (keyUp) {
	if (!fight) {
		this.gotoAndStop(1);
	}
}
onClipEvent (keyDown) {
	if (Key.getCode() == Key.SPACE) {
		this.gotoAndStop(3);
		fight = true;
	}
}
onClipEvent (enterFrame) {
	if (Key.isDown(Key.UP)) {
		this._y -= speed2;
		this.gotoAndStop(2);
	}
	if (Key.isDown(Key.DOWN)) {
		this._y += speed2;
		this.gotoAndStop(2);
	}
	if (Key.isDown(Key.LEFT)) {
		this._x -= speed;
		this.gotoAndStop(2);
		_xscale = -scale;
	}
	if (Key.isDown(Key.RIGHT)) {
		this._x += speed;
		this.gotoAndStop(2);
		_xscale = +scale;
	}
	thisDepth=this.getDepth(), otherDepth=_root.enemy.getDepth();
	if (_y>_root.enemy._y && otherDepth>thisDepth) {
		this.swapDepths(_root.enemy);
	}
	if (_root.enemy._y>_y && thisDepth>otherDepth) {
		this.swapDepths(_root.enemy);
	}
	if (ground.hitTest(_x+(_width/2), _y-(_height/2), true)) {
		_x += speed;
	}
	if (ground.hitTest(_x-(_width/2), _y-(_height/2), true)) {
		_x -= speed;
	}
}

You're code was a mess, so I tidied it up. And I don't see the point of half of it, but meh.
- Good practice to declare variables properly.
- You only need one enterFrame clipEvent

And as for the black bar "thing", I might look at that later. I would upload a fla, but I think its better if you learnt for yourself.


23.

None

Topic: AS2 velocity problem

Posted: 09/10/09 04:52 AM

Forum: Flash

onClipEvent(load)
{
	var xspeed:Number = 0;
	var friction:Number = 0.9;
}

onClipEvent(enterFrame)
{
	if(Key.isDown(37))
	{
		xspeed--;
	}
	else if(Key.isDown(39))
	{
		xspeed++;
	}
	else
	{
		xspeed *= friction;
	}
	
	this._x += xspeed;
}

Simple example - Player speeds up when you hold left or right, then slides when neither are being pressed.

Coding on the frame is far better (and easier) than on induvidial MC's.

24.

None

Topic: Is my flash good enough for F.P?

Posted: 09/10/09 04:44 AM

Forum: Flash

Defiently, although the ball doesn't look very realisitc when it "falls" through the basketball hoop.

A shuttlecock isn't a ball btw.

25.

None

Topic: Question about custom cursors...

Posted: 09/07/09 05:39 PM

Forum: Flash

This might work if using as2. Might.

onKeyDown = function() {
   if(key.isDown(2)) {
       Mouse.hide();
   }
}

26.

None

Topic: Question about collision detecting.

Posted: 09/07/09 05:37 PM

Forum: Flash

At 9/7/09 04:49 PM, Nucco wrote: Hey there. I have this code which generates objects (which is called "dart") to shoot down the stage randomly (much like a rain effect). I have a character which is located at the bottom of the stage controllable via left+right keys. He is suppose to be able to collect the falling objects. I assume you'd need to use a hitTest, correct? I have tried using one in every way I could find but I cannot seem to get it right.

So far I have this code in my movie:

this.createEmptyMovieClip("canvas_mc", 10);

Interval = setInterval(addDart, 1000);

function addDart () {
var t:MovieClip = canvas_mc.attachMovie("dart1", "dart"+i, canvas_mc.getNextHighestDepth())
i++;
t._x = Math.random()*Stage.width;
t._y = -50;
}

My question: Where should I put the hitTest code? I've put it everywhere I could think of but nothing seems to work. Any help would be appreciated.

You could add the dart to an array, and then loop through the array every frame to see whether any are being hit. Like so:

this.createEmptyMovieClip("canvas_mc",  10); 
Interval = setInterval(addDart, 1000);
var darts:Array = new Array();
 
function addDart () {
 	var t:MovieClip = canvas_mc.attachMovie("dart1", "dart"+i, canvas_mc.getNextHighestDepth())
 	i++;
 	t._x = Math.random()*Stage.width;
 	t._y = -50;
       darts.push(t);
}

onEnterFrame = function() {
     var dart_count:Number = darts.length;
 
    for(i = 0; i < dart_count; ++i) {
         if(darts[i].hitTest(whatever)) {
             // do whatever
             // remove dart from stage, and splice from array if needed.
       }
   }
}

Theres bound to be some errors as my as2 is abit rusty :)
Hope it helps.


27.

None

Topic: [as3-php] Send E-mail

Posted: 09/07/09 05:07 AM

Forum: Flash

I've got it working for me, link.


28.

None

Topic: [as3-php] Send E-mail

Posted: 09/06/09 05:19 PM

Forum: Flash

Try the full URL to the send mail file, here:

var urlReq:URLRequest = new URLRequest("http://mysite.com/sendMail.p hp");

Also, I think you've missed a semi-colon (;) after calling the php mail() function.


29.

None

Topic: AS2 Help Needed

Posted: 07/12/09 02:51 PM

Forum: Flash

At 7/12/09 02:42 PM, EnlightenedAngel wrote: I keep getting

**Error** Scene=Scene1, layer =Layer 1, frame=1:Line 10: Statement must appear within on/onClipEvent handler
if (Key.isDown (Key.DOWN)) {

I'm a AS noob so could anybody help?
onClipEvent(enterFrame)
{
         // Your code
}

Must be on a MC


30.

None

Topic: no blur setting under actions

Posted: 07/08/09 01:51 PM

Forum: Flash

Which version of flash are you using?

I'm running CS4, and the only way I could get to it was by selecting (or making) a movieclip, then selecting properties, then looking under filters.


All times are Eastern Standard Time (GMT -5) | Current Time: 02:57 AM

<< < > >>

Viewing 1-30 of 2,398 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 94480