imothep85's Forum Posts

  • You do not have permission to view this post

  • You do not have permission to view this post

  • yeah and also the text box is too limited without options, like: text selected > then >change to > "" this is something working at the perfection with Fusion 2.5 and text boxes, but in construct 2 we have tons of little limitations who make things more complex to achieve !

  • you can do whatever you wan with the keys you just need to give the right formula position in X to the blinking cursor ! and you can also play with x,y and scale too ( for a selection

    square for example)

    if you add an event every tick left key down, then you can change the formula for the blinking cursor and it works every time !

    if you did a mistake in your text dont use left but just use backspace, that's what i do and it remove the wrong letter (like in the video)

    for example if i type something wrong in my app i just added a function "enter" erase everything typed in text box and then you restart typing

  • why you want to keep the left key down when you are typing ????

  • i shared a video

  • i was trying to show you a video but i dont have a record sofware, but it works ! you just need to change the values i explained. with my basic one line+ blinking sprite a i can go at the end of teh screen right side, then move back and correct my text, cursor follow what i do if i change on letter or more etc.

    values to change: Every Tick > "spritename" > set text_user.TextWidth+len(text_user.Text)+110

    change then by adding the "left key" and change the values "spritename" > set text_user.TextWidth+len(text_user.Text)+110

    i did a video for you:

    https://streamable.com/bvv4v

  • is the textbox object if you want to select the text, but i dont need it, you can change the scale to the mouse position x +len(text_user.Text) maybe im going to test it but everything works , perfectly

    for Left, Right, End, Home you can add a function move to but for my need i dont use it because i just use one text line, no multiline

  • i can now make everything appear and be animated by just typing somme commands my first basic gui interface.

    full size: http://oi66.tinypic.com/25hmgpt.jpg

  • Thanks so much brunopalermo

  • hi

    in my app i added the event on any key pressed audio play "sfx".

    but the problem is the sound "ogg" is not played, it's only played if i push the key "ENTER"

    how to make the sound play for any key?

  • FOUND!!!

    the right formula IS:

    Every Tick > "spritename" > set text_user.TextWidth+len(text_user.Text)+110

    and my sprite follow what i type at screen

    if you change this "+110" by another number this will change the space between the last typed letter/space etc and the blinking cursor, for the blinking effect i used the flash behaviour set to 0.5

  • if the user tpress Enter for example then the cursor restart from the left side and text is set to ""

  • nope not with css... i tried this formula

    new x coordinate of sprite to text_user.x+len(text_user.Text) my coursor appears at the right place but doesn't move at the same speed im typing, it moves but too slow

    i need to have the cursor after the typed text

  • thanks so much dop2000 do you know how can i add a sprite square at the end of each typed letter? like a blinking square cursor?

    like: https://media.giphy.com/media/3oEdvbRHem1psqd7a0/giphy.gif