Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResetObjectCollision ei tyhjennä objektin törmäyslistaa #70

Closed
valscion opened this issue Jun 8, 2012 · 0 comments
Closed

ResetObjectCollision ei tyhjennä objektin törmäyslistaa #70

valscion opened this issue Jun 8, 2012 · 0 comments
Labels

Comments

@valscion
Copy link
Contributor

valscion commented Jun 8, 2012

FrameLimit 60
obj = LoadObject("Media\guy.bmp", 72)
obj2 = CloneObject(obj)

PositionObject obj2, 0, -50
SetupCollision obj, obj2, 2, 2, 2

Repeat
    TurnObject obj, (LeftKey() - RightKey()) *  5
    MoveObject obj, (UpKey() - DownKey()) * 3

    If KeyDown(cbKeySpace) Then
        ResetObjectCollision obj
        count = count + CountCollisions(obj)
    EndIf

    Text 0, 0, count

    DrawScreen
Forever

Ruudulla oleva numero pitäisi aina olla 0.

@valscion valscion closed this as completed Jun 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant