general skills: filling up the game attributes the traditional way |
the new way to fill in the game attribute blank.
step 1 - create a test attribute - recommended with prefix like "game attribute blank"
step 2 - insert the text attribute into ...the purple things below
step 3 - insert the purple thing with the text attribute in to certain blanks or replace the "game attribute-intra-behavior attribute" according
for example
procedure for the alternate way to fill game attribute blanks :
1) code which is (getGameAttribute(_anyOfYourText));
- example: g.drawString("" +(getGameAttribute(_Shit1)),5,5)
legend: "_shit1" and "_anyOfYourText" are internal names of text attributes
changing values,example: (getGameAttribute(_internal_Name_of_Number_Attribute)) |
However, for Stencyl 3.2 or later, one can just
Warning if the game attribute is not available, it will be apeared "null"
can be used as boolean:
false; <=0
true: >0
can also be set to a value
here is another example: pop-up options
to see the conventional version; http://stencyl-nator.blogspot.my/p/stencyl.html
additon; OR subtraction - the game attribute must be a Number. in this case, click to add
No comments:
Post a Comment