Could someone explain this simple thing?

Post your tutorials here.

Could someone explain this simple thing?

Postby vaidas369 » Mon Nov 09, 2015 9:52 pm

How to add _1 and _2 or any other to make them be on object script box?
And what you can do with it and how to use it?

AS SIMPLE AS POSSIBLE Thank you

There is a screen shot for those who did not get it what i was asking.
Attachments
Capture.PNG
Screen shot for those who did not get it what i was asking.
(59.5 KiB) Not downloaded yet
vaidas369
 
Posts: 24
Joined: Thu Jan 30, 2014 8:51 pm

Re: Could someone explain this simple thing?

Postby T'wind_ » Mon Nov 09, 2015 10:52 pm

You can add booleans by typing two & signs between them. _1&&_2
If you want to store the result in a variable, you type: _result = _1&&_2
If you want that the _result variable changes when the value of _1 or _2 changes, you type: _result = {_1&&_2}

Is this what you wanted to know?
User avatar
T'wind_
 
Posts: 86
Joined: Wed Jul 08, 2015 5:33 pm
Location: Western Europe

Re: Could someone explain this simple thing?

Postby T'wind_ » Mon Nov 09, 2015 11:05 pm

Oh, I misunderstood your question. :crazy:
You can add thing to the script box by typing the thing you want to add in the black square at the top.
Type _aaa = 15 in the black square and a variable will appear named _aaa with value 15.
You can use that variable in another script, like when you spawn a circle you can write density := 10; but you could also write density = _aaa; in that case the density will be the value stored in the variable _aaa.
User avatar
T'wind_
 
Posts: 86
Joined: Wed Jul 08, 2015 5:33 pm
Location: Western Europe

Re: Could someone explain this simple thing?

Postby vaidas369 » Tue Nov 10, 2015 12:30 am

Thanks!
vaidas369
 
Posts: 24
Joined: Thu Jan 30, 2014 8:51 pm


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

cron