Autor Beitrag
pichunter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 40

Win XP prof.
Delphi 7, C/C++ (VS 2003 - kotz)
BeitragVerfasst: Do 18.05.06 18:37 
Ich Baue grad ein Minispiel mit DelphiX, wo der Spieler ein Auto steuert. Man sieht den ganzen Spaß von oben.
Jetzt das Problem: Wie drehe ich das Bild von mein Auto?

ich dachte das es evtl hiermit geht:
ausblenden Delphi-Quelltext
1:
DXImageList1.Items[0].DrawRotate(???, 10, 10, 40, 64,0,20,32,P1_rotate);					

Die ???, da weis ich nicht was da rein soll...

Wäre um Hilfe sehr dankbar.
Ironwulf
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 733
Erhaltene Danke: 2



BeitragVerfasst: Do 18.05.06 19:26 
wenn du sprites verwendest musst du
ausblenden Delphi-Quelltext
1:
Angle:= Round(Winkel * 256 / 360);					

und das sprite muss als spriteex deklariert werden
ausblenden Delphi-Quelltext
1:
TSprite = class (TImageSpriteex)					
pichunter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 40

Win XP prof.
Delphi 7, C/C++ (VS 2003 - kotz)
BeitragVerfasst: Do 18.05.06 19:30 
Titel: thx
Super. funzt genau so wie ich das wollte. (aber warum hab ich das nicht gefunden? egal...)