Insignia, I wouldn't say my method is better, both are plausible solutions.
From the Manual:
sine behaviour
Or you could have a look at the lite-tween plugin.
You could add a completely red sprite in the form of the ship, set it's blend mode to additive and set it's opacity based on the damage.
It won't work if someone plays your game and their browser has a bigger menu bar, or other things that affect their window-size, that's why I gave the link to the different screensizes tutorial.
Develop games in your browser. Powerful, performant & highly capable.
<img src="https://dl.dropboxusercontent.com/u/48563442/explanation.png" border="0" />
And the browser window size is?
Push F11 to see real full screen, because the browserwindow takes away from the size as does the taskbar at the bottom of your screen.
I'm not sure what we should see by looking at your screencapture.
Have you ever read this?
Supporting multiple screen sizes
Because of the many different screen size and aspect ratios there is not a "one solution fits all". You'll have to decide what works best for your game.
In the project properties set the project scaling to letterbox scale, if your project size is in 16:9 it wil be scaled accordingly.
Take a look at This topic and specifically rojohounds example, which has been edited for later construct versions on the second page by Ramones.
What is the size of your project in your project properties?
What kind of scaling options have you set in the project properties?
What would you like to happen when the browserwindow is 4:3?
It's a system condition. system trigger once.
Member since 26 Apr, 2011