Im trying to make a pause button
Well for what i do I would make a sprite in interface and draw a pause button, then if you clicked it it would pause your screen? I really dont know not a expert…
Just use a toggle switch. You could just use two switches, and since they are in my words a fundamental of code you literally need them for nearly everything. An if statement in code is a switch, an else statement is a switch, and I can’t even describe all of the switch-like things in code.
so its the easiest code ever and most needed?
It’s just a lock, if it’s off nothing can pass through if it’s on the output will work
it’s nearly impossible to code most things without them
may u show a pause code
hit the don’t pause this object option and make sure the object is a control system object meant for fullscreen, pausing, etc
it aint work but thx
yes it does. show me your code
{“data”:{“behavior”:{“v”:“2”,“nodes”:[{“inputCount”:0,“outputCount”:2,“name”:“Keyboard”,“behaviorType”:“logic.triggers.Keyboard”,“x”:-270,“y”:-128,“group”:"",“id”:“f410ca9a15212d4c”,“keyCode”:80},{“inputCount”:2,“outputCount”:2,“name”:“Toggle”,“behaviorType”:“logic.logic.FlipFlop”,“x”:0,“y”:-128,“group”:"",“id”:“f410f223eeec6044”,“loop”:true,“initialState”:0},{“inputCount”:2,“outputCount”:2,“name”:“Pause”,“behaviorType”:“logic.gameflow.Pause”,“x”:180,“y”:-96,“group”:"",“id”:“f411c227400f564e”}],“links”:[{“input_id”:“f410f223eeec6044i0”,“output_id”:“f410ca9a15212d4co0”},{“input_id”:“f410f223eeec6044i1”,“output_id”:“f410ca9a15212d4co0”},{“input_id”:“f411c227400f564ei1”,“output_id”:“f410f223eeec6044o0”},{“input_id”:“f411c227400f564ei0”,“output_id”:“f410f223eeec6044o1”},{“input_id”:“f411c227400f564ei0”,“output_id”:“f410f223eeec6044o1”},{“input_id”:“f411c227400f564ei1”,“output_id”:“f410f223eeec6044o0”}]}}}
that doesn’t give me anything, make sure you are pasting it in correctly
isnt thatthe code u can export it
but fine here you go
what object is it in
the player object thing
i said put it in an object to represent a control system, make a new object and put it in there, as well as make it don’t pause for this object since you probably didn’t do that either
ok thanks now its solutioned already so salute ima mark this as finished