Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by quidmonkey

Is it possible to scale an image directly from code? I know it can be done from Weltmeister. What I'm looking to do is replicate the particle effects of Biolab when an enemy is killed. From what I see, the particles appear to be the enemy sprite scaled down.

1 decade ago by fugufish

yes, see http://www.phoboslab.org/log/2010/12/hqx-scaling-in-javascript

1 decade ago by dominic

The particles when killing an enemy are not scaled down versions of the enemy sprite, but some special "gibs" sprites. For the grunt, these gibs are in the same sprite sheet as the enemy itself (first row):
/><br />
<br />
The blob enemy had an extra sprite sheet for the gibs, because I couldn't decide which approach was better :D<br />
<img src=

1 decade ago by quidmonkey

Cool. Thx for the replies!

1 decade ago by bicepjai

if scaling is not required, then why does my entities are not reproduced exactly in the weltmeister http://postimage.org/image/br0weojqn/

1 decade ago by Arantor

Because Weltmeister by default applies a x2 scaling on everything because that's often advantageous for level editing. If you want it to be shown at actual size, edit the config.js file and change the zoom parameter.

1 decade ago by Warnerlee

Yep, if you are a developer, you can just scale image by some c#, vb code in visual studio, here is a free onlin image scaling source code in c#, have a look.
http://www.rasteredge.com/how-to/csharp-imaging/scale-image/
Page 1 of 1
« first « previous next › last »