Forum

> > CS2D > Scripts > Rotation Script
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Rotation Script

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Rotation Script

Precel97
User Off Offline

Zitieren
Can someone tell me how to create a rotate script?
- When I Rotate The Image Is Rotating Too...

This Is Script
1
2
3
4
5
6
7
8
9
10
function sample.classes.spawn(id)
if (sample.classes.class[id]<=2) then
	freeimage(id)
	id1=image("gfx/thmod/undead.bmp",0,0,100+id)
	imagescale(id1,1,1)
	imageblend(id1,3)
	imagealpha(id1,0.7)
        imagerot(id1,0.5)
	end
end
Can Someone Tell Me?
But Imagerot not work..

alt Re: Rotation Script

OlaFPhp
User Off Offline

Zitieren
Well the script is on the classes
so its gonna rotate it follows the players direction.

alt Re: Rotation Script

EngiN33R
Moderator Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
function sample.classes.spawn(id)
if (sample.classes.class[id]<=2) then
     freeimage(id)
     id1=image("gfx/thmod/undead.bmp",1,0,100+id)
     imagescale(id1,1,1)
     imageblend(id1,3)
     imagealpha(id1,0.7)
end
end

alt Re: Rotation Script

TimeQuesT
User Off Offline

Zitieren
Nexmann hat geschrieben
if u want that a image will rotate than made it on editor.

you didn't understand the problem right?

ontopic:

try to change the mode of the specific image...
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht