Game Development Community

Scale player

by Joe Sulewski · in General Discussion · 10/29/2004 (9:32 am) · 2 replies

Hello,

I'm new to torque and I checked the resources but I didn't find what I'm looking for.

How do you scale the player image. I can do it in the torque editors but when I save the mission it doesn't save the player size, I have to resize them each time it runs. I would like to do it in the player.cs code and I added
scale=".5 .5 .7" but it doesn't seem to work. Any quick ideas?

I order the Game Programming book from Amazon, i can't wait to get it.

Thanks for any help

#1
10/30/2004 (2:52 pm)
You can try %player.setScale(".5 .5 .7"); right after the player object is created in the game code.
#2
11/01/2004 (10:23 am)
Thanks. That worked. I can't wait to get the book.