• All, Gmail is currently rejecting messages from my host. I have a ticket in process, but it may take some time to resolve. Until further notice, do NOT use Gmail for your accounts. You will be unable to receive confirmations and two factor messages to login.

Scaling of sprites

AlexDC22

Well-known member
Is there a way or script to scale an entity?
i am ripping some sprites and i dont know if i would have to resize them to fit the size of my game? the sprites are for an obstacle and theyre rather large xD
not sure if its possible within the openbor engine..
thanks
 
Possible, yes. Smart? Absolutely not. Among many other headaches, you'll still have to handle collisions yourself. They can be scripted, but it's an advanced technique that you're not ready to do if you had to ask the question.

Scaling is for effects, not as a production tool. Scale them in your editor.

DC
 
Possible, yes. Smart? Absolutely not. Among many other headaches, you'll still have to handle collisions yourself. They can be scripted, but it's an advanced technique that you're not ready to do if you had to ask the question.

Scaling is for effects, not as a production tool. Scale them in your editor.

DC
thank you... it was mainly for obstacles, but i yeah if its a pain then nevermind... ill have to get a bit more creative thats all xD
thanks for the response brother :)
 
Is there a way or script to scale an entity?
i am ripping some sprites and i dont know if i would have to resize them to fit the size of my game? the sprites are for an obstacle and theyre rather large xD
not sure if its possible within the openbor engine..
thanks
I'm not sure how exact your character/object is you want to scale, but you can take a look at this for scaling an entity. I personally script it with setdrawmethod if I want to resize a character that has a lot of animations. But if an entity only has a few, I use drawmethod.

 
I'm not sure how exact your character/object is you want to scale, but you can take a look at this for scaling an entity. I personally script it with setdrawmethod if I want to resize a character that has a lot of animations. But if an entity only has a few, I use drawmethod.

i may come back to this if i cant find better obstacles or if i dont make my own xD thanks brother is just for a few frames here and there...
 
I'm not sure how exact your character/object is you want to scale, but you can take a look at this for scaling an entity. I personally script it with setdrawmethod if I want to resize a character that has a lot of animations. But if an entity only has a few, I use drawmethod.

Does scaling down drawmethod cost alot of RAM/memory?
Does it look as good as Photoshop image resizing?
The reason I am asking is that I have hundreds of sprites that I use for Summons and as well as the bosses. Basically the bosses would be 1.50 to 2 times bigger than the normal summons.
Due to the hi-res game I am developing and the OOM issue, I want to limit as less sprites as possible. I know I can use Photoshop to scale down the sprites perfectly, but
if the Openbor engine can scale them down no problem without costing alot of RAM, it would be great.
Thank you
 
Back
Top Bottom