# ColorPark WIP

incrazyboyy - Adventure level - from iOSFinished the design of the windinator and added this thumb. More updates coming soon (subscribe so you can't miss them)! Vote for attractions in the comments! And please enjoy :)

Views: 2572 Downloads: 777 Unique objects: 65 Total objects: 1419

LEVEL ID: 7977

## Discuss this level

when you reach the max left swing, stop pressing

when you reach the max right swing, continue pressing A

and so on

I know how to script in lua but have no idea how to detect the movement

targetObj=world:get_entity_by_id(3)

Angle=targetObj:get_angle()/(math.pi*2)

Integer,Decimal=math.modf(Angle)

if Decimal<0 then

this:write(0,1-math.abs(Decimal)) else

this:write(0,Decimal)

end

--=[by zardOz]=--

--=[User Defined Variables]=--

--=[set Id#'s of the object you want to be Gyro/tilt]=--

--=[set Tiltmeter sensitivity 0.00 to 100+, mirrors actual TM]=--

targetObj = world:get_entity_by_id(8,184)

TMSensitivity = 2

--=[Gyroscope = Out0, do not modify]=--

A=targetObj:get_angle()

cA=A/(math.pi * 2)

Int,Dec=math.modf(cA)

In0 = this:read(0)

if In0>=.5 then

if Dec<0 then this:write(0,1- math.abs(Dec))

else this:write(0,Dec) end end

--=[Tiltmeter = Out1(ccw), Out2(cw), do not modify)]=--

--aTi,aT=math.modf(Dec*TMSensitivity)

--if In0>=.5 then

--if aT>=0 then this:write(1,aT)

--else this:write(2,math.abs(aT)) end end

--zardOz code upper

angle = (((A%math.pi)/math.pi)-0.5)*2

if angle > 0 then output = 1 else output = 2 end

this:write(output,math.abs(angle))

Downloaded it?

Why do you want to edit? Im just interested

Und was sagst du zu dem park

2. Für was ist der schieberegler am windinator?

@pajlada: how much time is left?

what I wanted to say is that you should better upload your wip than giving up

Sorry for using this metaphor.

But my wip level was better than the winners I think (please dont understand that wrong)

I school I have lots iof ideas but never have time to build them :D

But i forgot the name, its not tornado

And platforms are ugly xD