It’s ridiculously simple what I’m trying to achieve. I’m trying to have a black screen and white triangle(I can make that) that starts off-screen and will slide from right to left(x-axis) until it’s off the screen on the left side and will there disappear(that I can’t do). For those tasks, is it best to use relative positions or absolute? Because I’d like to have multiple “emitters”, if it’s not too complicated.
I know I will have other question soon too so I’ll ask, I’m thinking about using conditionals, would this work somehow?
float time = ofGetElapsedTimef();
if (time == 5)
//Generate triangle no. 2
elseif (time == 10)
//Generate triangle no.3
etc…
endif
made this alternative solution, of course I know I have to learn, sweat and cry often to learn
but Im still having problems with delaying the midi message
For your first answer of shooting triangles, you can simply check if(x > ofGetWidth()) x= 0; or any postion you want x to be and so the triangle after x crosses the screen ,where x can any x-cordinate of the triangle you are drawing through ofTriangle(x1,y1,x2,y2,x3,y3) .Is this what you wanted? Hope it helps…cheers!