risk game

About advanced scenes, and the Thyme scripting language used in Algodoo.

risk game

Postby mold999 » Sun Jan 09, 2011 12:11 am

im making a risk-like game. the pieces all have a lot of airfriction and there is no g. you drag the pieces around. all the pieces have various numbers on them. if the color of a piece that another piece is colliding with is another color, then the text is soposed to find the difference between them. if the number is less than or equal to zero, then it remains at zero. what can i do?
Phundementalism?

Ain't nobody got
thyme fo dat.
User avatar
mold999
 
Posts: 225
Joined: Sun Jan 02, 2011 1:35 am
Location: [176436, 3763234]

Re: risk game

Postby davidz40 » Sun Jan 09, 2011 2:09 am

I don't quite understand what You mean, but hopefully You will be able to finish the code:

Code: Select all
(e)=>{color=e.other.color ? {controlleracc-e.other.controlleracc > 0 ? {somecode}:{someothercode};}:{};text=""+controlleracc;}

Value is stored in controllerAcc, after performing action, values are refreshed on text.
Phundamentalist
User avatar
davidz40
 
Posts: 438
Joined: Sun Sep 06, 2009 10:30 am

Re: risk game

Postby mold999 » Fri Jan 14, 2011 2:10 am

thanks
Phundementalism?

Ain't nobody got
thyme fo dat.
User avatar
mold999
 
Posts: 225
Joined: Sun Jan 02, 2011 1:35 am
Location: [176436, 3763234]


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 1 guest