HOME | DD

shock-value — shockscript as3 demo

Published: 2008-10-28 02:59:58 +0000 UTC; Views: 1710; Favourites: 4; Downloads: 19
Redirect to original
Description 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)
Related content
Comments: 7

fantasy-or-reality [2008-11-07 23:50:43 +0000 UTC]

...all it says is ArgumentError: Error #1063

...

T_T

👍: 0 ⏩: 1

shock-value In reply to fantasy-or-reality [2008-11-08 01:45:38 +0000 UTC]

hmm... what text did you enter that produced that error?

👍: 0 ⏩: 1

fantasy-or-reality In reply to shock-value [2008-11-12 03:21:22 +0000 UTC]

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

👍: 0 ⏩: 1

shock-value In reply to fantasy-or-reality [2008-11-15 19:49:00 +0000 UTC]

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.

👍: 0 ⏩: 0

wonderwhy-ER [2008-10-28 09:16:23 +0000 UTC]

Hmm. Some documentation and auto-completes and tips would be nice

👍: 0 ⏩: 1

shock-value In reply to wonderwhy-ER [2008-10-28 15:37:28 +0000 UTC]

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.

👍: 0 ⏩: 1

wonderwhy-ER In reply to shock-value [2008-10-28 18:12:35 +0000 UTC]

Nah just would be good to read or it is kind of hard to see what all those do

👍: 0 ⏩: 0