Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Resize obrázkov  (Read 2893 times)

0 Members and 1 Guest are viewing this topic.

Iranicus

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 45
  • .. something is wrong ..
    • View Profile
Resize obrázkov
« on: January 07, 2009, 09:11:26 AM »

Ahoj,

mám jeden problém (ako vždy:)). Momentálne skriptujem istú akciu, a som už skoro na konci, keď som zlyhal. Predstavme si, že si na scéne označím nejaké miesto (myšou spravím real-time region), a potom sa mi tam zobrazí nejaký obrázok.
Problémik je v tom, že ja potrebujem zmeniť veľkosť toho obrázku, ale nefunguje mi to. Skúsme to na jednoduchom teste. Mám vo scéne obrázok (nie sprite!) toho pacmana, priradím mu vo SceneEdit skript, do ktorého napíšem:

Code: [Select]
on "LeftClick"
{
  this.Width  = 500;
  this.Height = 500;
}

Dúfam, že Width a Height nie sú len ReadOnly, ale dajú sa nimi nastaviť aj rozmery. Prečo to nefunguje? ???
Logged
Where is the will, there is the way.

Iranicus

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 45
  • .. something is wrong ..
    • View Profile
Re: Resize obrázkov
« Reply #1 on: January 07, 2009, 09:19:32 AM »

Dobre, vyriešil som to. Riešim to cez okno, kde to funguje :).
Logged
Where is the will, there is the way.
 

Page created in 0.034 seconds with 23 queries.