Be a Supporter!

Take a look at these codes!

  • 342 Views
  • 8 Replies
New Topic Respond to this Topic
KevinAndJoeCartoons
KevinAndJoeCartoons
  • Member since: Jan. 4, 2010
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Take a look at these codes! 2010-03-03 14:21:32 Reply

These codes are purely by me!

There supose to be pretty simple.

This one is for an click-collect-escape inventory:

Object:

on(release){
_root.canary -=1;
if(_root.canary == 1){
this._visible = false;
}
}

Inventory slot:

A movie clip:

1st Frame:

_root.canary == 2
if(_root.canary == 1){
nextFrame();
//next frame is a picture of a picked up item
}

NOTE:There may be major bugs in this code!!!


Some people preffer non-moving art,I preffer motion art.
I SEE MY DRAWINGS MOVE!!!I think that means something.

Treerung
Treerung
  • Member since: Apr. 18, 2008
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to Take a look at these codes! 2010-03-03 14:32:40 Reply

gee..thanks?


:'(

BBS Signature
KevinAndJoeCartoons
KevinAndJoeCartoons
  • Member since: Jan. 4, 2010
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to Take a look at these codes! 2010-03-03 14:39:05 Reply

At 3/3/10 02:32 PM, Treerung wrote: gee..thanks?

Ummm,I'm waiting to see if the code has bugs...

Your Welcome!


Some people preffer non-moving art,I preffer motion art.
I SEE MY DRAWINGS MOVE!!!I think that means something.

ProfessorFlash
ProfessorFlash
  • Member since: Oct. 6, 2007
  • Offline.
Forum Stats
Member
Level 32
Programmer
Response to Take a look at these codes! 2010-03-03 14:44:33 Reply

What's the point of this thread, lol.


You can solve pretty much any problem you may have with AS3 by consulting the AS3 Language reference.

KevinAndJoeCartoons
KevinAndJoeCartoons
  • Member since: Jan. 4, 2010
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to Take a look at these codes! 2010-03-03 14:45:59 Reply

I dunno!

Probably because I wanted this to fixed if it has errors.


Some people preffer non-moving art,I preffer motion art.
I SEE MY DRAWINGS MOVE!!!I think that means something.

Innermike
Innermike
  • Member since: Sep. 11, 2009
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to Take a look at these codes! 2010-03-03 15:09:09 Reply

I dont know if it has errors but i do know its some of the most badly written code ive seen in a while :)


nobody

CompleteDouche
CompleteDouche
  • Member since: Dec. 1, 2008
  • Offline.
Forum Stats
Member
Level 09
Musician
Response to Take a look at these codes! 2010-03-03 18:01:30 Reply

At 3/3/10 02:45 PM, KevinAndJoeCartoons wrote: Probably because I wanted this to fixed if it has errors.

So you made a pointless thread saying you want to see if your code has errors, when Flash has a built-in syntax checker to see if there is an error.
Yeah, badly written code at that too.


No matter what your weaknesses are, make sure your own abilities supersede them.

Innermike
Innermike
  • Member since: Sep. 11, 2009
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to Take a look at these codes! 2010-03-03 18:06:54 Reply

At 3/3/10 06:01 PM, CompleteDouche wrote:
At 3/3/10 02:45 PM, KevinAndJoeCartoons wrote: Probably because I wanted this to fixed if it has errors.
So you made a pointless thread saying you want to see if your code has errors, when Flash has a built-in syntax checker to see if there is an error.
Yeah, badly written code at that too.

Syntax errors make up but a fraction of total errors CD , only a fraction but the point remains , flash has debugging tools , if you FIND an error then google help , if all else fails come here for help , were human beings not error checkers


nobody

Neo-13
Neo-13
  • Member since: Jun. 9, 2007
  • Offline.
Forum Stats
Member
Level 23
Programmer
Response to Take a look at these codes! 2010-03-03 18:34:05 Reply

At 3/3/10 02:21 PM, KevinAndJoeCartoons wrote: _root.canary == 2
if(_root.canary == 1){
nextFrame();
//next frame is a picture of a picked up item
}

Well, I can tell you that this is stupid.

Assuming you meant _root.canary = 2 at the top, the if statement would never fire.

What is the point of this thread? Test it yourself. Or just completely scrap it to be honest, as it is useless, and I'm afraid to say that noone will find any use for it here.


BBS Signature