Titlescreen..

H

heanfry

Guest
i have

obj_title: image_alpha = 0. when created, the image_alpha = 0 slowly turns in step event.

if i press to start the game, i want the obj_title returns again to image_alpha = 0.

but my problem is, that if the image_alpha turns down it automatically turns again up because of the earlier step event.
i want them to be seperate, or to perform them only once in the step event until its finished and then never used again.
it there a way to help this?

thank you
 
K

Kenjiro

Guest
Code:
// Create Event
this_thing_done = false;

// Step event
if(!this_thing_done)
{
   // do thing
   this_thing_done = true;
}
 

Kyon

Member
try using a variable.
Like, in the create event along with image_alpha=0, something like
Code:
turnalpha=true;
then in the step (not sure what you wanted to do but..):
Code:
if (turnalpha=true){
  if image_alpha<1{image_alpha+=.1;}
  else{turnalpha=false;}
}
 
H

heanfry

Guest
@Kenjiro
thanks for your help, so im jusing your code but my thing i want to have done needs to has to step but after one loop the variable changes.
 
K

Kenjiro

Guest
Put this at the end of your step event then.

Code:
this_thing_done = true;
 
Top