hi. another problem.
I'm trying to make a remote control for changing tv programs in my game.
I already made a gui with some buttons (each button is supposed to change to a different program). I also made some tv programs (i use characters who are supposed to appear/disappear in the tv by using the gui buttons).
now i reached my limits and have no idea how (where?) to connect the gui buttons with the tv programs!
Be a little specific, that way, I can help you with the script. If you don't know what I mean, tell me which GUI buttons go to the TV program and, tell me what you made the TV program as.
Hi, I think I can help with your problem.
First go to your GUI tab and on every button in the "Left click" do a run-script action(This might be default ON but I'm not sure), and then click on edit script at the bottm of your screen.
In the script add a line similiar to this.
------
if (interface == * && button == ^^) { // Where *=The GUI Number and ^^=The button number
Ã, NewRoomNPC(TVGUYONE, **); // NewRoomNPC is only supported in 2.62, where **=the room number and TVGUY is the character on the TV
Ã, NewRoomNPC(OTHERTVGUY, -1); // This makes all the other characters disappear on the TV, that could've been on the screen. Duplicate this line for every other character.
Ã, character[TVGUYONE].x=**; // x coordinates are the base of the TV screen
Ã, character[TVGUYONE].y=**; // y coordinates are the base of the TV screen
Ã, }
-------
This way, when you have your remote GUI on, and when you click on a certain button, then the TV character appears at the TV screen coordinates in your room.
You can duplicate the code and change it as many times as you want for the other buttons.
:)