|
Post by egotrip on Aug 18, 2013 14:34:05 GMT
I have the following code for a vertical moving platform which uses Sprite 6:
IF COLLISION 6 IF F=0 //Set by Event 6 to determine direction of platform IF CANGOUP LET H = G // G is X position of Sprite 6 SUBTRACT 16 FROM H LET X = H EXIT ENDIF ELSE IF CANGODOWN LET H = G SUBTRACT 16 FROM H LET X = H EXIT ENDIF ELSE FALL ENDIF
Works great going up, nice and smooth. However going down it is all jerky and horrible. How can I fix it? It also wont let me jump from it but I can move left/right from it.
|
|
|
Post by kas29 on Aug 18, 2013 14:43:55 GMT
egotrip. And as in my game R2-D2? so normal?
|
|
|
Post by kas29 on Aug 18, 2013 14:47:12 GMT
egotrip. And as in my game R2-D2? so normal? Attachments:
|
|
|
Post by egotrip on Aug 18, 2013 15:07:01 GMT
I should add I am using the CPC version so I cant open that file. Thanks anyway. What is it?
|
|