ID:163014
![]() Oct 24 2007, 4:16 pm
|
|
is there any built in way to get some kind of "tilt" affect to something, as to like rotate it south like 15 degrees.
|
![]() Oct 25 2007, 11:48 am
|
|
Yes, there's Turn().
|
I am trying to use it like this, can it not be used in this manner?
for(var/turf/A in world) |
it might be better if i could also shrink it inside the map window....is there a way to shrink icons also?
|
If you want the player's view to be completely turned, I think there's a client variable called "dir" for that, but I don't know how that works.
|
ok, im trying to use it on an icon, getting kind of a weird, but cool effect....i was wondering however if i can get it to work how i need it to... any help please...
for(var/turf/A in world) plus the icon seems to be black after it does the rotation things, but only in the middle parts. |
With the client.dir variable, the screen will be turned, making it seem like the map has turned, but really hasn't. If you want it so everyone's screen turns, use a for() loop.
|
That would only be possible with math, making the locations of everything change. But I have no idea what the meaning of the word "math" is, so just go with the second thing I said.
for(var/mob/M in world) Turning the map doesn't change the icons, though. |
ok, i need to scale everything down, to 0.75, move it towards the middle putting it together, and tilt everything to the right 30 degrees, how would i go about doing it?
|
ok, i rotated everything in my game, thinking if i did so, i would see black, at the 4 corners, but instead, i see black only in the middles of some squares, why would this be happening?
also, im trying to scale it, but it says that Scale() is an undefined proc. i need an example of how to use the scale() proc. even after turning it 90 degrees, 180 degrees and 360 degrees and even 32 degrees i get nothing, reason i say 32 is because the icon is 32 pixels wide and high |