Shop Forum More Submit  Join Login
first demo of shockscript AS3 ... (which stands for actionscript 3). see my journal here: [link] for some background information on how to use it (note that the set_element and get_element functions have been eliminated since i programmed their functionality into the set and get functions i.e. set and get can be used for simple variables as well as arrays).

here are the available functions (i'm leaving descriptions of them as well as their arguments out for now but please ask if you want to know any specific ones that you can't guess yourself!!!! seriously i am looking for feedback it's just that i don't want to write all that out if no one is going to try this out!):

get
set
set_eval

exec
exec_timer
exec_text
exec_text_timer
if
if_else
ifs_elses
case

loop
loop_var
loop_timer
loop_text
loop_text_timer
while

+
*
/
-
%
&
<<
~
|
>>
>>>
^
==
>=
!=
<=
&&
!
||
===
!=

abs
acos
asin
atan
atan2
cos
exp
log
pow
random
sign
sin
sqrt
tan

trace
concat
length
char_at
index_of
last_index_of
match
replace
search
slice
split
substr
substring
to_lower_case
to_upper_case

array
concat_array
join
pop
push
reverse
shift
slice_array
splice
unshift

boolean
int
is_finite
is_nan
number
string
regexp

pi
e
infinity
neg_infinity
null
undefined
nan

there will be tons more functions in the final version, especially ones for messing with the graphics, physics, and behavior of the buddies (as well as anything else i can think of/people request)
Add a Comment:
 
:iconfantasy-or-reality:
fantasy-or-reality Featured By Owner Nov 7, 2008  Hobbyist Traditional Artist
...all it says is ArgumentError: Error #1063

...

T_T :P
Reply
:iconshock-value:
shock-value Featured By Owner Nov 7, 2008
hmm... what text did you enter that produced that error?
Reply
:iconfantasy-or-reality:
fantasy-or-reality Featured By Owner Nov 11, 2008  Hobbyist Traditional Artist
well, i enter one of the commands and when i push enter that's all that comes up.....


then again, i have no idea what i'm doing either :P
Reply
:iconshock-value:
shock-value Featured By Owner Nov 15, 2008
well, most of the commands take parameters. so try entering, for example, "sin (* pi .5)" (without quotes). this returns the sine of pi divided by two (which is one).

if you have any questions about what parameters some of the functions take, let me know. i suppose i could have (and perhaps should have) written that information out where i listed them, but that would have taken a long time :) in the final game everything will be documented of course.
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Oct 28, 2008
Hmm. Some documentation and auto-completes and tips would be nice :)
Reply
:iconshock-value:
shock-value Featured By Owner Oct 28, 2008
autocompletes... that is a really good idea. i will look into that. as far as proper documentation is concerned, the final version will of course have that, but for now i'm a bit busy with school so i don't know if i will be able to come up with anything comprehensive. if you have questions about any specific functions i'll be happy to help you out with them.
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Oct 28, 2008
Nah just would be good to read or it is kind of hard to see what all those do :)
Reply
Add a Comment:
 
×



Details

Submitted on
October 27, 2008
Image Size
8.6 KB
Resolution
960×540
Thumb

Stats

Views
1,123
Favourites
4 (who?)
Comments
7
Downloads
9
×