Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Rotate Button  (Read 3256 times)

0 Members and 1 Guest are viewing this topic.

Rocco

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 87
    • View Profile
    • Virtual-Illusion
Rotate Button
« on: May 31, 2006, 05:48:09 PM »

i tried many different approaches, but dont get this damn button to rotate.
i have the button script which look like this with my nonfunctional rotationcode  :(.

Code: [Select]
var rotation = 5;
self.Rotatable = true;
self.Rotate = rotation;

on "LeftClick"
{


    rotation = rotation + 10;
    self.Rotate = rotation;
    .
    .
    other code which works :-)
    .
    .
    Sleep(10);
}

« Last Edit: June 02, 2006, 08:48:23 AM by Jerrot »
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Rotate Button
« Reply #1 on: May 31, 2006, 06:04:46 PM »

GUI elements cannot be rotated. You'd have to use an entity instead of button.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Rocco

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 87
    • View Profile
    • Virtual-Illusion
Re: Rotate Button
« Reply #2 on: June 01, 2006, 02:39:25 PM »

thx, its not so important, but i found this in the help file, under Button object -> Attributes
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Rotate Button
« Reply #3 on: June 01, 2006, 03:00:31 PM »

Yes, well, these are the joys of object oriented programming. All the game objects inherit the Rotate attribute, but only some of them actually do implement it.
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.021 seconds with 23 queries.