typewriter text with moving cursor

Get help using Construct 2

Post » Sun Feb 19, 2017 12:58 pm

Hi Community,

I'm trying to produce a simple (not so much for me - lol) - auto typewriter simulator in C2 (more of a CLI or DOS screen). I seen examples online but didn't quite cut the mustard for me. My demo is heavily borrowed from this example https://www.scirra.com/forum/typewriter-text-effect_t63552

oh and he's my messy attempt: http://www.robfreeman.co.uk/test/New%20project.caproj

I created a sprite called cursor and tried to get that to spawn a single letter then move over... but clearly this would never work with what I have. I placed a button in order to simulate it.

Any clever person able to help me out - would be deeply appreciated.

Thanks,
Roberto
B
4
S
1
Posts: 57
Reputation: 491

Post » Sun Feb 19, 2017 1:53 pm

This was a fun challenge and I can use this in my own projects:

Image

https://www.dropbox.com/s/1fu3cxy6k5qqxwz/Screen%20Typewriter.capx?dl=0

You can add in the rest of the letters and whatever other symbols you want and I included a backspace feature to allow your user to edit what they type and the space key.

UPDATE: I added in upper and lower case letters with shift key and the arrow keys so you can position text anywhere on the screen and the delete key clears the entire page. That is in the CAPX.

Enjoy!
Last edited by lamar on Sun Feb 19, 2017 9:56 pm, edited 1 time in total.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Sun Feb 19, 2017 2:51 pm

I made the backspace so it will go clear back to the beginning and cursor stays on screen. I changed that in the CAPX as well so all you have to do is put in the rest of the letters and symbols you want and define your type page space.

I will create a tutorial today with this because it is probably something more people would like to use.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Sun Feb 19, 2017 3:54 pm

Wow lamar,

You are truly great and I thank you!
B
4
S
1
Posts: 57
Reputation: 491

Post » Sun Feb 19, 2017 3:56 pm

RobertoFreemano wrote:Wow lamar,

You are truly great and I thank you!



You are very welcome!

I am still working on this so your user can use the arrow keys to position the text wherever they want.
Last edited by lamar on Sun Feb 19, 2017 9:59 pm, edited 1 time in total.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Sun Feb 19, 2017 6:05 pm

Hi LaMar,

Is there a way to get case insensitive? It seems to be in CAPS.
Thanks,
Roberto
B
4
S
1
Posts: 57
Reputation: 491

Post » Sun Feb 19, 2017 6:12 pm

RobertoFreemano wrote:Hi LaMar,

Is there a way to get case insensitive? It seems to be in CAPS.
Thanks,
Roberto


The keyboard reads upper and lower case the same but you could add in a check for when Shift is pressed and select whether to set sprite to upper or lower case letters.

I am working on a tutorial now and I will see what I can do to make that possible.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Sun Feb 19, 2017 6:16 pm

Thanks LaMar, you're a superstar.
B
4
S
1
Posts: 57
Reputation: 491

Post » Sun Feb 19, 2017 9:57 pm

RobertoFreemano wrote:Hi LaMar,

Is there a way to get case insensitive? It seems to be in CAPS.
Thanks,
Roberto



I added in upper and lower case letters with shift key and the arrow keys so you can position text anywhere on the screen and the delete key clears the entire page. That is in the CAPX.

https://www.dropbox.com/s/1fu3cxy6k5qqxwz/Screen%20Typewriter.capx?dl=0
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 47 guests