repeated typing function.

You must understand the Game Editor concepts, before post here.

repeated typing function.

Postby Sgt. Sparky » Fri Apr 20, 2007 3:20 am

here is a typing function I made,
it was a time consuming function but it was not hard at all,
it covers a through z, shift works, it can repeat, backspace works, and it also covers all those from keys 1 to the = key.
and enter/return works to!(only right shift is the shift key that works.) :D
here is what you do to use it:
put this in the global code and save it as somthing,
Code: Select all
code removed,
I am inproving it with a much smaller, Better version.
 = )

then make a text actor and put this in its draw actor event,
Code: Select all
allow_type(text, 5);

to make the repeat slower or faster adjust the number to the right(the 5.)
and on on the key released(key up) of any key use this
Code: Select all
no_wait();

I think this will come in handy for an rpg game where you talk,
and maybe even when the multiplayer capability comes out. :D
I will be changing and advancing this code every once and a while. :)
its a bit buggy but it works!
Last edited by Sgt. Sparky on Tue Apr 24, 2007 5:30 pm, edited 1 time in total.
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Caaz Games » Fri Apr 20, 2007 3:36 am

This message is for the lazy!:

the actor must have text in it first!
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Postby Sgt. Sparky » Tue Apr 24, 2007 4:35 pm

oi, this function is not that good yet, but I am going to modify that soon! :D
(with arrow key movements ect. :D )
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest