Exactly as i mentioned. Button sound is Music NOT sound....
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuoteHi,i want to make a game like "who want to be a millionaire" so the game is all about buttons.For someone who knows nothing about buttons this could be a long journey if he wants to complete this type of game but I wish him the best of luck...
My question is how to make a button in AGS ? and when i aim at that button it turns to green(for example)
i got the 2 pictures one is (Start game"red color") and i got another one (Start game"green color)
so how to create a button and when i aim on it how to change it to another picture(color). Thanks.
QuoteCreamy: Because of a lack of time and inspiration, our game will probably not see the light of dayawwwwwwwwwwwwwwwwwwwwwww
// in Global
bool wasOverButton = false; // Placed above function repeatedly_execute()
function repeatedly_execute() {
bool isOverButton = GUIControl.GetAtScreenXY(mouse.x, mouse.y) == Start_button; // when the mouse is over Start_button
if (isOverButton && !wasOverButton) aPsh.Play(); // aPsh sound will play once each time whilst over Start_button
wasOverButton = isOverButton;
}
}
if(GUIControl.GetAtScreenXY(mouse.x, mouse.y) ==Button3){ // If over a gui button
aKNOCK.Play(); // will play this sound when mouse over
}
if(player.Room==3 && Object.GetAtScreenXY(mouse.x, mouse.y) ==object[5]){ // if over a room object
aKNOCK.Play(); // will play this sound when mouse over
function StartGame_Interact() // AGS Adds this Interact function
{
player.Walk(oStartGame.X,oStartGame.Y+10,eBlock,eWalkableAreas); // player walks to start game object
player.Loop=3; // face object
// Animate object this like:
oStartGame.SetView(10) // or whatever view it is you have made
oStartGame.Animate(0,4,eOnce,eBlock); // will play loop 0 only once
// Do this like start the game etc
{
QuoteBlondbraid: I'm still a bit tired from making an entry last month, as well as working on my own project.Come on... I'm almost 62
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.373 seconds with 15 queries.