Forum

> > CS2D > Scripts > Rotation Script
Forums overviewCS2D overview Scripts overviewLog in to reply

English Rotation Script

5 replies
To the start Previous 1 Next To the start

old Rotation Script

Precel97
User Off Offline

Quote
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..

old Re: Rotation Script

OlaFPhp
User Off Offline

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

old Re: Rotation Script

EngiN33R
Moderator Off Offline

Quote
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

old Re: Rotation Script

TimeQuesT
User Off Offline

Quote
Nexmann has written
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...
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview