playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
[SOLVED] CompoundArray issue
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: [SOLVED] CompoundArray issue (Read 2546 times)
DARK_ETERNAL
Full Member
Posts: 110
[SOLVED] CompoundArray issue
«
on:
November 06, 2012, 02:40:30 PM »
Greetings.
I'm not pretty sure to be understanding CompoundArray property. According to this thread below, CompoundArray only works for two objects. Pretty interesting if I might want to use more than two, but, instead... I wanna use ONE. And, working with the CompoundArray, defining only one parameter, I get the error that no constructor for CompoundArray is defined for only one parameter. Is there any alternate way to compound arrays, or should I use CompoundArray with a unused parameter? What I would like to avoid is unnecessary memory allocation.
http://hutonggames.com/playmakerforum/index.php?topic=147.msg561;topicseen#msg561
Thanks in Advance.
«
Last Edit: November 06, 2012, 02:46:15 PM by DARK_ETERNAL
»
Logged
Check out our new game: Nitro Chimp. Now live in App Store!
Trailer:
//www.youtube.com/watch?v=yxfkGy4N-lQ
Download:
https://itunes.apple.com/app/nitro-chimp/id557150450?l=en&mt=8
DARK_ETERNAL
Full Member
Posts: 110
Re: CompoundArray issue
«
Reply #1 on:
November 06, 2012, 02:45:55 PM »
I guess I've got my solution, thus I'm marking this as solved.
It's just a matter of defining a public array, and, when setting its size, it'll generate the fields to define each array position's value.
Logged
Check out our new game: Nitro Chimp. Now live in App Store!
Trailer:
//www.youtube.com/watch?v=yxfkGy4N-lQ
Download:
https://itunes.apple.com/app/nitro-chimp/id557150450?l=en&mt=8
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: [SOLVED] CompoundArray issue
«
Reply #2 on:
November 07, 2012, 04:08:36 AM »
Hi,
There are standards actions you should open scripts from to see how compound arrays are working, for example the "fsm state switch":
https://hutonggames.fogbugz.com/default.asp?W487
now, if you want simply an array for a single fsmValue, yes, it's only a matter of appending [] to the variable class like the "build string" action:
https://hutonggames.fogbugz.com/default.asp?W372
bye,
Jean
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
[SOLVED] CompoundArray issue