Bild dreht sich nicht richtig
Übersicht

OrbitBetreff: Bild dreht sich nicht richtig |
![]() Antworten mit Zitat ![]() |
|
---|---|---|
Hallo,
mein Meteor dreht sich nicht um seine eigene Achse, sondern um einen Punkte, sowie sich der Mond um die Erde dreht. Code: [AUSKLAPPEN] ;Meteorbild laden For winkel = 0 To 359 MeteorImg(Winkel)=LoadImage("gfx/Meteor.bmp") RotateImage MeteorImg(Winkel),Winkel MaskImage MeteorImg(Winkel),255,0,255 Next Code: [AUSKLAPPEN] ;Meteoren zeichenen For Met.Meteor = Each Meteor Met\ypos = Met\ypos+3 Winkel = Winkel+1 If Winkel > 359 Then Winkel = 0 If Winkel < 0 Then Winkel = 359 DrawImage MeteorImg(Winkel),Met\xpos,Met\ypos If ImagesOverlap(MeteorImg(Winkel),MouseX(),MouseY(),SplImage,Met\xpos,Met\ypos) Then PlaySound(ExplosionSnd) DrawImage Explosion,Met\xpos-25,Met\ypos-25 Delete Met.Meteor SplHealth = SplHealth - 50 EndIf Next fg, Orbit |
||
![]() |
Christoph |
![]() Antworten mit Zitat ![]() |
---|---|---|
So was mach ich auch grad. Wart ich suchs....
..midhandle bildname hat die Wirkung, dass sich ein Bild um sich selbst dreht( nicht um den Punkt links oben) |
||
![]() |
Markus2 |
![]() Antworten mit Zitat ![]() |
---|---|---|
So is besser
Img=LoadImage("gfx/Meteor.bmp") For winkel = 0 To 359 MeteorImg(Winkel)=CopyImage(img) RotateImage MeteorImg(Winkel),Winkel MaskImage MeteorImg(Winkel),255,0,255 Next |
||
![]() |
Christoph |
![]() Antworten mit Zitat ![]() |
---|---|---|
Linkt euch mal da hin. Da gibts noch mehr zum Thema:
Bild um den Mittelpunkt drehen |
||
Übersicht


Powered by phpBB © 2001 - 2006, phpBB Group