February 16, 2025, 10:00:08 AM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Latest WME version:
WME 1.9.1
(January 1st, 2010) -
download
Home
Help
Search
Calendar
Login
Register
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
free entity Width & height
« previous
next »
Pages: [
1
]
Print
Author
Topic: free entity Width & height (Read 3231 times)
0 Members and 1 Guest are viewing this topic.
SoundGuy
Regular poster
Karma: 0
Offline
Posts: 196
free entity Width & height
«
on:
June 05, 2008, 06:44:28 AM »
Hey,
Is there a way to get a free entity's Width and Height ?
I want to change its scale, but keep it's center constant.
the Height property always returns 0 , and the width doesn't exist and returns 0.
Maybe there's a way to access that info from some sub-object , like the sprite ?
Oded
Logged
Mnemonic
WME developer
Administrator
Addicted to WME forum
Karma: 41
Offline
Gender:
Posts: 5683
Re: free entity Width & height
«
Reply #1 on:
June 05, 2008, 04:44:00 PM »
Unfortunately not. It's on my todo list, but not yet implemented.
However, if your only desire is to keep the center, simply move the sprite hotspot to its center. Then then entity scale won't matter.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum.
SoundGuy
Regular poster
Karma: 0
Offline
Posts: 196
Re: free entity Width & height
«
Reply #2 on:
June 06, 2008, 06:25:59 PM »
ah. good workaround, although i wish i could define the hotpot to jpg's in the scene-editor instead of wrapping them up in a .sprite file that only is needed to define the hotspot.
Logged
Print
Pages: [
1
]
« previous
next »
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
free entity Width & height