Hi I am more familiar with java programming than I am construct 2, however I definitely love using construct 2 for game dev more than hard coding. However there have been simple things that I can't figure out how to do the equivalent of such as something like this:
public int viewX(int angle, int distance){
return cos(angle*distance)
// Or just in general some sort of equation or whatever
}
public int viewY(int angle, int distance){
return sign(angle*distance)
}
In this case its simple enough that I Can just type out the equation every time I need to reference X pixels in front of an object at a certain angle, but with this and much more it would be so much simpler to reference viewX(21,3); and viewY(21,3);