Jump to content

Photo

How do I make a non endless loop of text with sound and black rectangl


  • Please log in to reply
1 reply to this topic

#1 LikeLike888

LikeLike888

    Spicy food lover!!

  • Members
  • Real Name:Jason
  • Location:North America

Posted 14 March 2018 - 02:01 AM

GML stands for Game Maker Language

 

 

 

Here is a GML version of what I want to do

if (Link.X == 15) //if Link's X position (spot) is equal to 15
{
  if (keyboard_check_pressed(ord("Treated_As_A_Button")))
  {
    if (!instance_exists(Black_Rectangular_Box))
    {
      if (Speaking_Did_Start == false)
      {
        instance_create(68,134,Black_Rectangular_Box);
        Do chosen strings in order with usual speed and usual white shade = true;
        with(Black_Rectangular_Box) {instance_destroy();}
        Speaking_Did_Start = true;
      }
    }
  }
}

 

 

 

 

Basically how with ZScript do I code

 

If Link is at x position 15

 

and if treated as Weapon A button does get pressed

 

a black rectangular box sized 136 pixels tall 64 pixels wide gets created

 

and then at normal text speed String 1's text comes

 

and then when String 1's text is finished String 2's text comes at normal text speed

 

and then when String 2 is finished if Weapon A button is pressed String 2 and also the black rectangular box both go away until Link is again at x position 15 and Weapon A button is pressed?



#2 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 16 March 2018 - 03:04 AM

This is the general premise for making scrolling strings. Untested, but it should start you on your way.
  • LikeLike888 likes this


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users