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

Jos objekti törmää siirtokoordinaateissa, se ei mene oikeaan paikkaan. #131

Open
valscion opened this issue Jul 17, 2012 · 0 comments
Open
Labels

Comments

@valscion
Copy link
Contributor

FrameLimit 60
SCREEN 1024,768
Type enemys
    Field obj
EndType

map=LoadMap("media\cdm2.til","media\tileset.bmp")

man=LoadObject("media\guy.bmp")
door=LoadObject("media\car.bmp")

PositionObject door,-290,200' ei toimi
//PositionObject door,-220,200' toimii

hp=300

Repeat


luo+1
If luo>100
        newenemy.enemys= New(enemys)
        newenemy\obj=CloneObject(man)
        SetupCollision newenemy\obj,map,1,4,2
        CloneObjectPosition newenemy\obj,door
        luo=0
EndIf

DrawGame

DrawScreen

Forever 
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