Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: Rotating Buttons  (Read 2866 times)

0 Members and 1 Guest are viewing this topic.

wisemanxxx

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
    • View Profile
Rotating Buttons
« on: May 08, 2010, 09:52:36 AM »

method LockPick(vCount)
{

var LkPkRedZonePos = Random(8,20);
var LkPkRedZone ;

Game.Msg(LkPkRedZone);


for(var i=0; i<vCount; i=i+1)
{
  LkPkRedZone = this.CreateButton("But");
 
 LkPkRedZone.SetImage("sprites\lockpick\lockpickredzone.sprite");
  LkPkRedZone.X =103;
  LkPkRedZone.Y = 103;
  LkPkRedZone.Movable=true;
  LkPkRedZone.Rotatable=true;
LkPkRedZone.Rotate=(i+LkPkRedZonePos)*11.25;


}
}

Can I rotate buttons like entities on a window? This code doesn't work
Logged

wisemanxxx

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
    • View Profile
Re: Rotating Buttons
« Reply #1 on: May 08, 2010, 10:01:48 AM »

excuse me this question has asked before. :)
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Rotating Buttons
« Reply #2 on: May 09, 2010, 09:34:30 PM »

No, you can't rotate buttons. Only entities and actors can be rotated.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.032 seconds with 20 queries.