Do I need a sprite for this?
Author |
Message |
harishmabish
|
Posted: Fri Apr 04, 2008 5:40 pm Post subject: Do I need a sprite for this? |
|
|
I want to make a car move, and while moving get larger?
So there any way I can expand the size of an image?
for example, you know how with Input.KeyDown you can move an image somewhere on the screen, well im wondering if you could basically do the same thing, except not move it around, but make it larger? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
syntax_error
![](http://compsci.ca/v3/uploads/user_avatars/196798963948cf16794b6e5.jpg)
|
Posted: Fri Apr 04, 2008 5:42 pm Post subject: RE:Do I need a sprite for this? |
|
|
as far as I know there is no way to enlarge an image maybe just redraw teh image bigger each time?
and no imho, sprite are un-needed for this |
|
|
|
|
![](images/spacer.gif) |
Jestar
![](http://compsci.ca/v3/uploads/user_avatars/32413159947deec5748c79.jpg)
|
Posted: Fri Apr 04, 2008 6:15 pm Post subject: RE:Do I need a sprite for this? |
|
|
cant you change the width and height of the image? |
|
|
|
|
![](images/spacer.gif) |
Nick
![](http://compsci.ca/v3/uploads/user_avatars/19644337547e837b41d67a.png)
|
Posted: Fri Apr 04, 2008 6:34 pm Post subject: RE:Do I need a sprite for this? |
|
|
Pic.Scale ![Wink Wink](http://compsci.ca/v3/images/smiles/icon_wink.gif) |
|
|
|
|
![](images/spacer.gif) |
Sean
![](http://compsci.ca/v3/uploads/user_avatars/47413941748406f441f83e.png)
|
Posted: Sun Apr 06, 2008 6:48 pm Post subject: Re: Do I need a sprite for this? |
|
|
If you created the image by drawing it with all shapes (eg. drawfilloval), you need to increase the y value of the shapes to make it larger. One of them, not both. |
|
|
|
|
![](images/spacer.gif) |
|
|