#SebiAlpha learning corner.

1 messages · Page 1 of 1 (latest)

lavish flicker
#

Since you are refusing to learn the basics use this thread for you questions.

still forge
#

alright father

#

i will do as you please

dim rivet
#

but as i was saying, yes its simple as NameOfFunction () ;
as long as the function is within the same script..

still forge
#

thanks

#

well i just made my own game

dim rivet
#

if u have another script and a reference to it.. you can do the same to call functions outside the script

myOtherScript.FunctionFromThatScript();

still forge
#

theres going to be alot of more stuff i would need to add tho

dim rivet
#

as long as its public void

still forge
dim rivet
#

most of the basic stuff is pretty easy

#

and has been done soo many times that its easy to find online

still forge
#

thats the issue tho

#

some make it super complicated

dim rivet
#

if u get into more advanced stuff its a bit harder.. for stuff like that
you just find bits and pieces that work for you and combine them

still forge
#

like one person instead of using the button component they made it so if the mouse is hovering over the img its being detected then if the mouse is being clicked it would be well called on

#

which is stupid if u ask me

dim rivet
#

well, theres always many many ways to do the same thing..

still forge
dim rivet
#

that may work for that person.. for example if you want the button to do something during different states..
Hover -> Highlight Button
Click -> UnHighlight Button / Do some function in code
UnHover -> UnHighlight Button

#

but even for that all that can be done inside the inspector using EventTrigger component

dim rivet