risk game
3 posts • Page 1 of 1
risk game
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.
Ain't nobody got thyme fo dat.
-

mold999 - Posts: 225
- Joined: Sun Jan 02, 2011 1:35 am
- Location: [176436, 3763234]
Re: risk game
I don't quite understand what You mean, but hopefully You will be able to finish the code:
Value is stored in controllerAcc, after performing action, values are refreshed on text.
- 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
-

davidz40 - Posts: 438
- Joined: Sun Sep 06, 2009 10:30 am
3 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest



