View Single Post
  #898  
Old 02-12-2011, 11:30 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Twinny View Post
Having issues rotating a showimg

PHP Code:
function onCreated() {
  
with (findimg(201)) {
    
polygon = { 302032020320803080};
    
image "zone_beamh1.png";
    
layer 4;
    
//this.rotation = degtorad(180);
  
}

This works fine but as soon as I uncomment the rotation, it dissapears
This has to do with the anchoring position of polygons, which is the upper-left instead of center. Thus when you attempt to rotate it doesn't disappear, it rotates out of the screen space. Try rotating very small radians and you'll know what I mean.

Sorry, gonna have to script up your own rotations for polygons, not that hard though
Reply With Quote