Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Bug Reports / sprite bug!!!

Author
Message
re faze
19
Years of Service
User Offline
Joined: 24th Sep 2004
Location: The shores of hell.
Posted: 9th Apr 2005 11:13
sprites do not size with images:

OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 10th Apr 2005 07:13 Edited at: 10th Apr 2005 07:16
No idea what you think the code should do, but it certainly wont scale anything.

The following code will :



re faze
19
Years of Service
User Offline
Joined: 24th Sep 2004
Location: The shores of hell.
Posted: 10th Apr 2005 07:21 Edited at: 10th Apr 2005 07:24
NO!NO!NO!NO!NO!NO!

the sprite is supposed to be the same size as the image!!!!
here it is the same size as the ORIGINAL image! if i go from using a 32x32 image to a 512x256 image, it is supposed to change from a 32x32 sprite to a 512x256 sprite, but the 512x256 image is confined to a 32x32 box!!!!
[edit]
worked in dbc.
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 10th Apr 2005 07:26 Edited at: 10th Apr 2005 07:28
Get rid of set sprite image and all is fine. That is not needed when you use the sprite command.
However it is a problem if you use paste image. So I'll accept it for that.

Mike Johnson
TGC Developer
21
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 2nd Oct 2005 02:33
Fixed in 5.9. The sprite will now match the size of the image upon the image being changed.
Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 3rd Oct 2005 23:23
Eek! So, from 5.9, every time you change a sprites texture, it will quite likely change size too. That could be really annoying. I'd rather the sprite stay the size I told it to originally with 'size sprite', as it does at the moment. I guess from 5.9 onwards, we'll all have to add the 'size sprite' command after every image change, just to keep the sprite size the same. Would it perhaps be better to add an optional parameter to the sprite command to allow automatic sizing according to the image? Then, if we choose not to add the extra 1 on the end, our 5.8 code won't need to be altered.

Mike Johnson
TGC Developer
21
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 3rd Oct 2005 23:27
That is probably better to add the extra parameter. Will do that tomorrow.
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 3rd Oct 2005 23:39
One man's bug is another's feature and one man's feature is another's bug I like the extra parameter idea.

Mike Johnson
TGC Developer
21
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 4th Oct 2005 12:22
Here's how I have changed this -

* new command added named "set sprite resize", this allows you to set the mode of resize, by default this mode is 0 meaning sprites will not be resized when images are changed, change this to 1 and your sprite is resized automatically when an image is changed

This way you only have to add one extra line to your program and it will save you having to add an extra parameter in possibly many lines of your source code.

The original source code will work as it did in upgrade 5.8 and the sprites size will not alter when the image is changed -



If you want this to change in 5.9 use this -



Will this work for everyone?
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 4th Oct 2005 13:16
Works for me

Login to post a reply

Server time is: 2024-04-24 17:04:42
Your offset time is: 2024-04-24 17:04:42