0 Members and 3 Guests are viewing this topic.
Quote from: TBO_Yeong on December 19, 2011, 07:07:12 amI have a question: why doesn't this code work? (It compiles, but it glitches on me)0→{S}→{S+5}→{S+15}and S is the pointer to appvar.(I just had this happen to me too and I spent a couple of hours before getting Runer's help and facepalming.)Because of the way Axe optimizes, number→{pointer} returns the pointer instead of the number. The code equivalent to what you are doing is actually this::0→{S} :S→{S+5} :S+5→{S+15}
I have a question: why doesn't this code work? (It compiles, but it glitches on me)0→{S}→{S+5}→{S+15}and S is the pointer to appvar.
For that and 0-> Is that supposed to be more optimized than0->
Only if you are storing to a one-byte value.I need to update my guide...lool
0→ADO(A)Disp "World"ReturnLbl DOZ-Test(r1,1)ReturnLbl 1Disp "Hello"Return
:.VELOCITY:192→θ .begin facing up:0.0→V .begin stationary:47.0→X .begin in the middle:31.0→Y:Repeat getKey(15):getKey(4)-getKey(1)+V→V .press up/down to speed up/slow down:getKey(3)-getKey(2)+θ→θ .press left/right to turn left/turn right:cos(θ)*2**V+X^96.0→X .use V and θ to change position:sin(θ)*2**V+Y^64.0→Y:Pxl-On(X/256,Y/256):DispGraphClrDraw:End