-
A Question for You Mad-Sci,Rosie and everyone else!!
I Have The Following Code Inside A Movieclip And I Want To Set These Variables On The Main timeline I Know That /: Will Set A Variable On The Main Timeline But When I Try And Concatenate It Or Add It To the Front Of The Expressions it doesnt work any ideas??
Set Variable: my_name(string) - _name(expression)
Set Variable: my_name & "_hwidth" (expression)= (GetProperty ("", _width) / 2)(expression)
Set Variable: my_name & "_hheight" (expression)= (GetProperty ("", _height) / 2)(expression)
set variable: i (string)= 1(expression)
Set Variable: my_name & "_x1"(expression) = GetProperty ( "", _x ) - my_name & "_hwidth"(expression)
Set Variable: my_name & "_x2" (expression)= GetProperty ( "", _x ) + my_name & "_hwidth"(expression)
Set Variable: my_name & "_y1"(expression) = GetProperty ( "", _y ) - my_name & "_hheight"(expression)
Set Variable: my_name & "_y2" (expression)= GetProperty ( "", _y ) + my_name & "_hheight"(expression)
set variable: i (string)=i + 1(expression)
This Will Create An Array!! Its For A New Game That me And Jyndas Are Creating And Its Almost Done Apart From This
I Have Tried The Following And They Dont Work:
Set Variable: my_name(string) - _name(expression)
Set Variable: "/:" & my_name & "_hwidth" (expression)= (GetProperty ("", _width) / 2)(expression)
Set Variable: "/:" & my_name & "_hheight" (expression)= (GetProperty ("", _height) / 2)(expression)
Set Variable: "/:" & my_name & "_x1"(expression) = GetProperty ( "", _x ) - "/:" & my_name & "_hwidth"(expression)
Set Variable: "/:" & my_name & "_x2" (expression)= GetProperty ( "", _x ) + "/:" & my_name & "_hwidth"(expression)
Set Variable: "/:" & my_name & "_y1"(expression) = GetProperty ( "", _y ) - "/:" & my_name & "_hheight"(expression)
Set Variable: "/:" & my_name & "_y2" (expression)= GetProperty ( "", _y ) + "/:" & my_name & "_hheight"(expression)
Also:
Set Variable: my_name(string) - _name(expression)
Set Variable: /:my_name & "_hwidth" (expression)= (GetProperty ("", _width) / 2)(expression)
Set Variable: /:my_name & "_hheight" (expression)= (GetProperty ("", _height) / 2)(expression)
Set Variable: /:my_name & "_x1"(expression) = GetProperty ( "", _x ) - /:my_name & "_hwidth"(expression)
Set Variable: /:my_name & "_x2" (expression)= GetProperty ( "", _x ) + /:my_name & "_hwidth"(expression)
Set Variable: /:my_name & "_y1"(expression) = GetProperty ( "", _y ) - /:my_name & "_hheight"(expression)
Set Variable: /:my_name & "_y2" (expression)= GetProperty ( "", _y ) + /:my_name & "_hheight"(expression)
I Help Everyone Else All The Time, Now Its Your Turn For Once!!
-
OK, when u put anything in quotes, it generally becomes a literal, is that right? If u put /: my_var, does it need a concatonator at all or does it work like a gt path? Do concatonations allow spaces between characters?
Set Variable: /:my_name&"_y2"&(expression) = whatever...
Trace (my_name&"_y2"&expression)
dunno what u r trying here, but it is a bit tough for me and [freak]
Hey, how 'bout that racer u said u could help me with?
If this helps [i hope it does] can u help me?
-
Yes They Do But I have Sorted my problem now
It Goes "_level0:" & "my_name" & i & "output"
-
Senior Member
Hey FlashG, now lets the game begin ? were is it ?
Links.......Links......Linx.
Post the game for killer critix. he he
mad-sci
-
Its A Secret mad-Sci I Will Tell When The Game Is In A Fit State For Viewing And Critics!!
-
Senior Member
Cmon man send me a copy of that pls. I maight help a bit and get in credits section.he he he
mad-sci
-
No Probs Mate Ill Send It To You As Soon As Its Feasible!!!
-
Senior Member
cool buddy whanna help with something am serious this time ?
Mad-Sci
-
-
Senior Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|