STEAM GROUP
Developers Zoo Dev-Zoo
STEAM GROUP
Developers Zoo Dev-Zoo
4
IN-GAME
47
ONLINE
Founded
2 September, 2012
Language
English
Showing 1-10 of 73 entries
1
How would a text box be made in GameMaker?
Here is one that I used for the Intro/Outro of ENYO:

Information about object: obj_ui_storyText

//====
Create Event:
execute code:
//====

typed_letters = 0; //for typewriter effect (one letter at a time)
i=0
show=true

text[0,0]='1st part of text'
text[0,1]='2nd part of text'
text[0,2]='3rd part of text'
text[0,3]=''
text[1,1]='another 1st part of text'
text[1,2]='etc...'
text[1,3]=''
//make the last msg be equal to '' to end the messages

txtPart = 0;
txtSel = 0; //when I create this object I set this var to the textblocks I want to show (-> with(instance create(0,0,obj_ui_storyText) { txtSel = 1; } <-that is how I create it)

nxtBtnX = 400; //this is the position of the 'NEXT' sprite
nxtBtnY = 200;
nxtBtnAlpha = 0;

//====
Alarm Event for alarm 0:
execute code:
//====

if (typed_letters < string_length(text[txtSel,i])) //this loops untill all letters are typed
{
alarm[0] = type_speed*room_speed;
typed_letters++;
audio_play_sound(snd_ui_button_tick,2,false);
}
else alarm[1] = 4*room_speed; //when its done it triggers alarm[1] after 4 secconds

//====
Alarm Event for alarm 1:
execute code:
//====

typed_letters = 0;
show=false;
instance_destroy(); //this destroys the textbox


//====
Step Event:
execute code:
//====

if (nxtBtnAlpha < 1) //this just fades in the 'NEXT' sprite
{
nxtBtnAlpha += 0.025;
}

//here comes the control for going to the next part of the text
var kContinue;
kContinue = keyboard_check_pressed(vk_space);
if (kContinue)
{
typed_letters = 0;
if (text[txtSel,i]!=''){i+=1;show=true; nxtBtnAlpha = 0;}
if (text[txtSel,i]='')
{
show=false;
}

}


//====
Draw Event: //If you want to use a box like this with a moving view (ingame) then better use a drawGUI event...
execute code:
//====


draw_sprite_ext(spr_ui_txtBoxNextIcon, 0, nxtBtnX, nxtBtnY, 1,1,0,c_white, nxtBtnAlpha); //draws the 'NEXT' sprite
draw_text_ext(x, y, string_copy(text[txtPart,txtSel], 0, typed_letters),14,390); //draws the text



================EOF

Hope that helps a little?!
1
Obscure Realm - Looking for Feedback
1
Licensing game IP for remakes etc
3
Green Light- Dos and Don'ts
@Demon thanks for the post!

Always keep in mind that there are a LOT of very young developers and they are all pretty excited to do anything they can to reach their 'success'. Often they don't quite know that some things may harm them on the long run and get agressive-defensive pretty fast. I've seen all kinds of shady tactics but in the end they are just fooling themself.

People have their opinions and I learnt that it is a waste of time to try an convice anyone with a stron opinion. It's time that can better be invested in proving them wrong by improving my projects.

That is the most important thing to me. I aknowledge a 'I don't like it' opinion and leave it at that. If people try to enforce their opinion then I kindly delete harrasing posts and leave a note explaining that it's ok to leave one negative comment (that I dont delete - so their opinion is shared) but I don't tolerate enforcement. And I use the flagging/ban system to inform Valve silently.

FYI: You can leave developer comments on your greenlight page for ValvE to explain controv
erse situations.


And greenlight (as gateway) will 'go away' someday and everyone will be able to distribute their games via steam. I'm guessing that then, it will rather become a tool for developers to measure intrest and see if a game is worth the effort. It actually does a pretty good job at that right now.

People just missinterpret the role of greenlight as a portal to success without knowing that there is a lot more to becoming a successful game developer than just getting games through greenlight.
0
Great list of dev tools
0
Basics of Synthesizers
2
Sound designers looking for projects? Or projects looking for sound designers?
10
Unreal 4 vs Unity 5
Showing 1-10 of 73 entries