Why is it not a good idea ? Im using js and html objects for things like drop down menus etc, ofc might impact performance if there is alot of html elements but i havent noticed yet.
I have a bias against using HTML objects since the days of Construct 2 - there were tons of issues with them back then. But I admit that almost all of those problems have been fixed now. Still, I remain a bit skeptical :)
CSS means using HTML object instead of Text, which is not a good choice in many games.
fanusgames Here is a demo:
dropbox.com/scl/fi/qne4sezq4tnml8vb2pbrw/TextAutoSize.c3p
Make sure the height of the text box is big enough to fit two lines of text at max size, otherwise TextHeight expression won't work.
Develop games in your browser. Powerful, performant & highly capable.
It's a known issue, fonts are rendered differently on different devices.
Make sure the font is imported in the project.
Try different Vertical Alignment options.
Try a different font
If nothing else helps, use a SpriteFont.
howtoconstructdemos.com/easily-save-multiple-values-in-local-storage
When I assign a '-' value to Y, the character dies when it touches the underside of the platform.
Then add another condition, checking that the character is above the platform. Character.Y<Platform.BBoxTop
You can also place an invisible sprite with a smaller polygon size inside the platform and use it for collision checks.
Use "Overlapping at offset" condition. X:0, Y:-2
I also suggest changing your events like this:
Or change layer interactivity setting.
Try setting parallax to 0 in layer properties.
When any button is pressed, append it to a string variable. Then check if this string ends with a specific sequence of characters.
+ Keyboard: On any key pressed Set keySequence to keySequence& to Keyboard.StringFromKeyCode(Keyboard.LastKeyCode) if right(keySequence, 4)="1234" ... do something if right(keySequence, 5)="IDDQD" ... do something else
Background1 needs to be above Background2. Or you'll need another copy of Background1 above Background2, on the same layer as the white mask.
And the green ring needs to be a separate sprite.
Array.CurX/CurY expressions only work inside of "Array for each element" loop. You probably need to use X:player.playerX, Y:player.playerY in "Set at XYZ action".
Local storage simple implementation:
how I can make the player's direction value loop from 0 to 3
You mean after 3 it should become 0 again? You can do this in one expression:
Set direction to (direction+1)%4
or
Set direction to (direction=3 ? 0 : (direction+1))
Member since 26 May, 2016