It's possible, but depending on how many tiles are displayed at once you might hit a performance block. What you basically need to do is loop through all displayed tiles, if any tile with index x,y,z are found, normalize them to the one that should be displayed according to the current System.Time value.
Or use rexrainbow's tagText plugin.
Go ahead, glad I could help you. It was a fun challenge too.
Heh, I lost quite a lot of time at work today trying to wrap my head around a way to do it. It's hacky, it's wonky, but I think I figured it out! (For single line textbox, at least)
https://dl.dropboxusercontent.com/u/700 ... it_v2.capx
edit: duh, it seems it selection bit doesn't work correctly on Chrome... oh well!
edit2: scratch that, event reordering corrected the problem
A timer behavior on your kanobär sprite would work great.
kanobär | On created -> Start timer "shoot" for 1.0 (Regular)
kanobär | On timer "shoot"
+kanobär | Is on-screen -> Your mirrored and not mirrored code as sub-events
It's an incomplete solution but it's pretty good nonetheless. It doesn't allow text selection or movement of the insertion point, but for a login form, it's more than enough indeed.
Develop games in your browser. Powerful, performant & highly capable.
This is a lot more complex to emulate the insertion point and the positioning of it. I really don't think it's possible to do it in fact... given the current functionnalities of the SpriteFont object. We'd need to be able to map a position on the SpriteFont to a character index of the source string.
oosyrag Both of these method should work, but the first one is indeed the best. It should also work on mobile whereas the alternative could prove troublesome to get it work on these platforms.
I think you have to be careful as to how you make the "TextBox" invisible as I believe some methods will make it impossible for it to receive focus and inputs. I tried setting its CSS position to absolute and placing it off-screen. Seems to work pretty well.
https://dl.dropboxusercontent.com/u/700 ... tEdit.capx
Displaying floating point numbers can be troublesome in Javascript. The decimal part often doesn't have an absolute binary representation, which leads to your "weird" behavior. You should always format your numbers before displaying them when you are dealing with decimals. Too bad Construct doesn't offer expressions to deal with that. One way to do it would be to parse the string representation of your numbers, and limit the output to the wanted decimal places.
Here's a crude example : https://dl.dropboxusercontent.com/u/700 ... ormat.capx
You could make your own trigger that fires every time the player changes tile. You need to code how each tile ID react when entered and exited. Here's an example.
https://dl.dropboxusercontent.com/u/700 ... eTile.capx
Hi there fremachuca!
Interesting, I thought I thoroughly tested this command, seems I was wrong! I will troubleshoot when I get time and come up with a fix and explanation as soon as I can. Stay tuned!
edit: Seems like it was an error of implementation instead of an error in the template. I did not receive more feedback from fremachuca so for the time being I'll assume no fix is necessary.
You should use ViewPortLeft/Right/Bottom/Top and specify for which layer you want the coordinates. ViewPortRight(0) gives you the y coordinates of the visible right edge of layer 0. If layer 0 is not your UI layer, it will not work correctly. Also, since you are using a System Condition and not actual "Frames" conditions, I recommend you add "For each Frames" and put all 4 events under it, otherwise, unwanted behavior will most likely occur.
Member since 4 Jul, 2011