00:00
00:00
Newgrounds Background Image Theme

Mekatov just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

API script generator

3,938 Views | 36 Replies
New Topic Respond to this Topic

API script generator 2005-07-23 13:46:45


API fans to API n00bs this suits you all!
I have constructed an API script generator and though it wont be complete for a day or so here is it so far (because it is useful now)

API SCRIPT GENRATOR

I will be adding curves and possibly gradients.
I will also maybe creat a freehand way of doing it and a faster way too
Of course also shortcut keys
But still this is a very useful demo and I hope everyone gets a kick out of it.
Please leave feedback / bug etc
I know the preview lines sometimes mess up but the code will be fine (according to the points you plot) Have fu maybe post your scripts you got using it and PLEASE read the help section

API SCRIPT GENRATOR

Questions/feedback below please

API SCRIPT GENRATOR


- Matt, Rustyarcade.com

Response to API script generator 2005-07-23 13:51:24


confusing

Response to API script generator 2005-07-23 13:54:07


At 7/23/05 01:51 PM, Glaiel_Gamer wrote: confusing

R
E
A
D

T
H
E

H
E
L
P

You will see it is very easy once you get to know what the heck you are doing.
I also realised that you must refresh if you want to make a new drawing


- Matt, Rustyarcade.com

Response to API script generator 2005-07-23 13:56:37


API makes the best games look up ABA games on google they are REZ-like games which was never expected to sell so they made few now that game goes for 300$

Response to API script generator 2005-07-23 13:57:08


good but the dtawing part isnt very user friendly. plus, how do u clear a line u dont want?


WEBSITE

BLOG ~ Dont fuck around with my dog. All that I can see I steal. ~

NG FFR ~ Automatic for the people.

BBS Signature

Response to API script generator 2005-07-23 13:58:29


At 7/23/05 01:57 PM, Mogly wrote: good but the dtawing part isnt very user friendly. plus, how do u clear a line u dont want?

As the help file says you cant. I know it isnt too user friendly at the moment but that is because this is only a dmeo. Thanks for the feedback though


- Matt, Rustyarcade.com

Response to API script generator 2005-07-23 13:59:25


It's a very early beta, the lines don't even draw correctly.

Response to API script generator 2005-07-23 14:00:00


And what, exactly, would be the use of this?

Response to API script generator 2005-07-23 14:00:18


At 7/23/05 01:59 PM, Lialtm wrote: It's a very early beta, the lines don't even draw correctly.

I know I said it in the first post. Good to see you realise its a beta version but yeah I only worked on it for an hour or so...


- Matt, Rustyarcade.com

Response to API script generator 2005-07-23 14:39:27


At 7/23/05 02:00 PM, Xentron wrote: And what, exactly, would be the use of this?

API. is drawing in flash only using actionscript. So if somebody made an API generator it would make making API games a lot easier.

Except, I wouldn't expect you to know that,

Response to API script generator 2005-07-23 16:10:28


I would of thought I would get alot more comments but I suppose it is only a hitty beta version. I should have called this the LIAM because he is the API lord around here. Seriously if you hate API talk to him and you will come out of the conversation loving the stuff


- Matt, Rustyarcade.com

Response to API script generator 2005-07-23 16:41:28


At 7/23/05 04:10 PM, Ninja-Chicken wrote: Seriously if you hate API talk to him and you will come out of the conversation loving the stuff

Yeah, as you did :)

Anyway, I thought I'd have a crack at something like this, except simpler.. basically I've made a quick extension that can go inside flash so you can create API lines without needing to be able to code at all.

http://img129.images..?image=apipad3xe.swf

Bloody imageshack has ruined the dimensions, but it still works.

NOTE: In the name textbox you must use quotations around your name or it won't work, I think I'll be able to get around that. Plus, I have so far only included the following colours:

*red
*blue
*green
*black
*white
*maroon
*dark grey

So they are the only words that will work in the colour box.

Yeah, it's only a beta too.

Thanks to NC for the inspiration and his is waaaay more complex than mine, but trying to fit something as complex as that in a small window (roughly 200x400) is just crazy.


Sup, bitches :)

BBS Signature

Response to API script generator 2005-07-23 16:45:58


You can't name variables as a number..
createEmptyMovieClip("1", 100) won't do..
and you can't just put in any random depth. Learn some more before trying to help others.

Response to API script generator 2005-07-23 16:47:05


At 7/23/05 02:00 PM, Xentron wrote: And what, exactly, would be the use of this?

to trick newbs into thinking it was flash ;)

At 7/23/05 04:41 PM, -liam- wrote: words of wisdom

cool but it would be better if there was a display of what was happening, even tho its a beta


WEBSITE

BLOG ~ Dont fuck around with my dog. All that I can see I steal. ~

NG FFR ~ Automatic for the people.

BBS Signature

Response to API script generator 2005-07-23 16:51:08


At 7/23/05 04:45 PM, The_BananaCock wrote: You can't name variables as a number..
createEmptyMovieClip("1", 100) won't do..
and you can't just put in any random depth. Learn some more before trying to help others.

Is that directed at me?

If so then I know that you can't name variables nor MCs as just numbers, and I know you can't just have a random depth.. but my generator didn't do that, it got the next highest depth. Moron.

If not: Ok.

At 7/23/05 04:47 PM, Mogly wrote: cool but it would be better if there was a display of what was happening, even tho its a beta

Yeah but when it is all finished you won't really need to see a display of anything.. just copy and paste. The idea is that the flash is inside Flash MX, as an extension.


Sup, bitches :)

BBS Signature

Response to API script generator 2005-07-23 16:54:57


At 7/23/05 04:51 PM, -liam- wrote: Is that directed at me?

If so then I know that you can't name variables nor MCs as just numbers, and I know you can't just have a random depth.. but my generator didn't do that, it got the next highest depth. Moron.

If not: Ok.

If yours didn't do that, why would i direct that at you? Looks like your common sense ran away

Response to API script generator 2005-07-23 16:55:47


At 7/23/05 04:54 PM, The_BananaCock wrote: If yours didn't do that, why would i direct that at you? Looks like your common sense ran away

You could have been wrong...

You are a COCK.

<3

Sup, bitches :)

BBS Signature

Response to API script generator 2005-07-23 16:57:48


At 7/23/05 04:55 PM, -liam- wrote:
At 7/23/05 04:54 PM, The_BananaCock wrote: If yours didn't do that, why would i direct that at you? Looks like your common sense ran away
You could have been wrong...

You are a COCK.

<3

14 day ban.

Response to API script generator 2005-07-23 17:03:35


At 7/23/05 04:57 PM, The_BananaCock wrote:
At 7/23/05 04:55 PM, -liam- wrote:
At 7/23/05 04:54 PM, The_BananaCock wrote: If yours didn't do that, why would i direct that at you? Looks like your common sense ran away
You could have been wrong...

You are a COCK.

<3
14 day ban.

Who was this directed at then?
Me?
Becuase verything I have done is fine n00b


- Matt, Rustyarcade.com

Response to API script generator 2005-07-23 17:10:24



- Matt, Rustyarcade.com

Response to API script generator 2005-07-23 17:15:24


u should limit where the dots appear when using the mouse otherwise its impossible to select the code

Response to API script generator 2005-07-23 17:17:30


At 7/23/05 05:15 PM, MJKram wrote: u should limit where the dots appear when using the mouse otherwise its impossible to select the code

Yes my good man I was just thinking that. I'll just make it so if you hold a button it cancels it out


- Matt, Rustyarcade.com

Response to API script generator 2005-07-23 17:21:21


WHO needs curves when you can have

_root.createEmptyMovieClip ("1",100)
with (1) {
lineStyle (1,0x000000,100)
moveTo (80,223.05);
lineTo (81,223.05);
lineTo (84,219.05);
lineTo (85,217.05);
lineTo (86,214.05);
lineTo (88,208.05);
lineTo (89,204.05);
lineTo (90,201.05);
lineTo (92,197.05);
lineTo (93,194.05);
lineTo (95,187.05);
lineTo (95,185.05);
lineTo (101,177.05);
lineTo (105,171.05);
lineTo (106,169.05);
lineTo (112,160.05);
lineTo (118,156.05);
lineTo (120,155.05);
lineTo (126,150.05);
lineTo (132,147.05);
lineTo (134,145.05);
lineTo (141,143.05);
lineTo (148,140.05);
lineTo (153.05,139.05);
lineTo (160.05,137.05);
lineTo (166.05,137.05);
lineTo (174.05,137.05);
lineTo (180.05,138.05);
lineTo (186.05,140.05);
lineTo (192.05,142.05);
lineTo (197.05,146.05);
lineTo (204.05,151.05);
lineTo (210.05,156.05);
lineTo (214.05,159.05);
lineTo (218.05,165.05);
lineTo (222.05,171.05);
lineTo (226.05,177.05);
lineTo (229.05,183.05);
lineTo (236.05,192.05);
lineTo (242.05,201.05);
lineTo (246.05,208.05);
lineTo (251.05,214.05);
lineTo (255.05,219.05);
lineTo (259.05,223.05);
lineTo (265.05,227.05);
lineTo (271.05,231.05);
lineTo (280.05,236.05);
lineTo (285.05,237.05);
lineTo (291.05,237.05);
lineTo (296.05,237.05);
lineTo (301.05,235.05);
lineTo (305.05,234.05);
lineTo (310.05,231.05);
lineTo (317.05,226.05);
lineTo (321.05,223.05);
lineTo (327.05,218.05);
lineTo (334.05,213.05);
lineTo (343.05,206.05);
lineTo (348.05,197.05);
lineTo (355.05,187.05);
lineTo (361.1,179.05);
lineTo (371.1,172.05);
lineTo (378.1,167.05);
lineTo (388.1,163.05);
lineTo (393.1,161.05);
lineTo (399.1,160.05);
lineTo (405.1,160.05);
lineTo (410.1,161.05);
lineTo (416.1,163.05);
lineTo (424.1,166.05);
lineTo (432.1,169.05);
lineTo (438.1,174.05);
lineTo (446.1,179.05);
lineTo (452.1,185.05);
lineTo (457.1,191.05);
lineTo (462.1,199.05);
lineTo (468.1,208.05);
lineTo (473.1,216.05);
lineTo (482.1,229.05);
lineTo (492.1,245.05);
lineTo (497.1,257.05);
lineTo (502.1,272.05);
lineTo (508.1,287.1);
lineTo (509.1,303.1);
lineTo (508.1,319.1);
lineTo (499.1,337.1);
lineTo (481.1,354.1);
lineTo (469.1,361.1);
lineTo (450.1,367.1);
lineTo (425.1,372.1);
lineTo (394.1,370.1);
lineTo (369.1,361.1);
lineTo (351.05,353.1);
lineTo (336.05,344.1);
lineTo (321.05,334.1);
lineTo (305.05,323.1);
lineTo (291.05,314.1);
lineTo (274.05,302.1);
lineTo (261.05,294.1);
lineTo (246.05,288.1);
lineTo (226.05,281.05);
lineTo (209.05,281.05);
lineTo (185.05,289.1);
lineTo (169.05,296.1);
lineTo (156.05,305.1);
lineTo (142,315.1);
lineTo (125,326.1);
lineTo (108,337.1);
lineTo (95,345.1);
lineTo (77,351.1);
lineTo (65,352.1);
lineTo (50,352.1);
lineTo (38,352.1);
lineTo (32,352.1);
lineTo (31,352.1);
}
HA HA HA


- Matt, Rustyarcade.com

Response to API script generator 2005-07-23 18:00:55


Above post..
Most useless post ever

Response to API script generator 2005-07-23 19:49:25


FREAKING AMAZING!!!
Fantastic job so far!!!

I have some things that I think you should fix though:

- Make better hit areas (like for selecting colors, if you select "no color")
- For color selecting, make a color mixer, or something like it, so that you may choose any color.
- Fix spelling mistakes
- When you leave the help page, it restarts the whole thing, making you have to re-do EVERYTHING

I think you should try to come up with an undo/redo button, I've seen it before in a Paint game, which the person gave me the FLA of. So if you would like that file, please email/AIM me and I'll give you it so you could look at it.

Response to API script generator 2005-07-23 22:00:00


_root.createEmptyMovieClip ("1",100)
with (1) {
lineStyle (1,0x000000,100)
moveTo (148.8,191.3);
lineTo (193.8,140);
lineTo (262.55,168.8);
lineTo (217.55,213.8);
lineTo (172.55,258.8);
lineTo (187.55,291.3);
lineTo (221.3,330.05);
lineTo (210.05,367.55);
lineTo (177.55,383.8);
lineTo (98.75,382.55);
lineTo (85,348.8);
lineTo (85,328.8);
lineTo (70,352.55);
lineTo (36.25,355.05);
lineTo (1.25,327.55);
lineTo (16.25,292.55);
lineTo (51.25,271.3);
lineTo (72.5,263.8);
lineTo (73.75,250.05);
lineTo (93.75,226.3);
lineTo (125.05,196.3);
lineTo (140.05,191.3);
lineTo (143.8,190.05);
lineTo (192.55,117.5);
lineTo (198.8,98.75);
lineTo (238.8,76.25);
lineTo (261.3,71.25);
lineTo (271.3,73.75);
lineTo (275.05,78.75);
lineTo (286.3,91.25);
lineTo (288.8,101.25);
lineTo (290.05,116.25);
lineTo (290.05,133.75);
lineTo (282.55,145);
lineTo (275.05,150.05);
lineTo (270.05,152.55);
lineTo (240.05,213.8);
lineTo (276.3,166.3);
lineTo (271.3,162.55);
lineTo (255.05,182.55);
lineTo (245.05,190.05);
lineTo (235.05,196.3);
lineTo (226.3,200.05);
lineTo (217.55,208.8);
lineTo (210.05,216.3);
lineTo (203.8,222.55);
lineTo (193.8,236.3);
lineTo (191.3,237.55);
lineTo (180.05,257.55);
lineTo (178.8,261.3);
lineTo (188.8,273.8);
lineTo (190.05,278.8);
lineTo (195.05,286.3);
lineTo (211.3,303.8);
lineTo (212.55,351.3);
lineTo (210.05,351.3);
lineTo (185.05,358.8);
lineTo (161.3,371.3);
lineTo (136.3,376.3);
lineTo (118.8,375.05);
lineTo (107.55,368.8);
lineTo (81.25,345.05);
lineTo (78.75,341.3);
lineTo (75,350.05);
lineTo (25,361.3);
lineTo (15,343.8);
lineTo (27.5,296.3);
lineTo (68.75,263.8);
lineTo (68.75,252.55);
lineTo (112.55,198.8);
lineTo (118.8,190.05);
lineTo (135.05,178.8);
lineTo (146.3,171.3);
lineTo (155.05,163.8);
lineTo (160.05,162.55);
lineTo (181.3,143.75);
lineTo (193.8,136.25);
lineTo (201.3,95);
lineTo (226.3,82.5);
lineTo (237.55,78.75);
lineTo (245.05,72.5);
lineTo (266.3,81.25);
lineTo (266.3,82.5);
lineTo (266.3,83.75);
lineTo (267.55,83.75);
lineTo (267.55,83.75);
lineTo (267.55,83.75);
lineTo (267.55,78.75);
lineTo (263.8,75);
lineTo (217.55,82.5);
lineTo (212.55,87.5);
}

lol

Response to API script generator 2005-07-25 20:38:50


This is the BEST generator EVER. Lookie at what I made:

http://img344.images..age=untitled50fh.swf

(code is there)

Response to API script generator 2005-07-25 20:51:00


Heh. I need to finish of my API code generator, I made it before I saw this topic. It needs some polishing up, but it should be good once I get round to finishing it off.


- - Flash - Music - Images - -

BBS Signature

Response to API script generator 2005-07-29 10:16:24


At 7/23/05 05:10 PM, Ninja-Chicken wrote: Hey Hey BETA V2 is here
http://img229.images..age=apihelper9wi.swf

http://img229.images..age=apihelper9wi.swf

http://img229.images..age=apihelper9wi.swf

Any comments?

yes you shouldnt use dots for drawing the lines, otherwise when you move the mouse fast you get very large gaps which dont match what is drawn in script made,
you should just use flashes API to draw to each point that the mouse moves to then you get something that reflects the real look of the lines drawn for example:

this.lineStyle(1,0x000000,100);
this.onMouseDown = function(Void)
{
this.moveTo(_xmouse,_ymouse);
this.onMouseMove = function(Void)
{
this.lineTo(_xmouse,_ymouse);
}
}
this.onMouseUp = function(Void)
{
this.onMouseMove = null;
}

Response to API script generator 2005-07-29 10:27:37


At 7/25/05 08:51 PM, Denvish wrote: Heh. I need to finish of my API code generator, I made it before I saw this topic. It needs some polishing up, but it should be good once I get round to finishing it off.

Any chance I can see what it looks like so far?

NC, any updates?


Sup, bitches :)

BBS Signature