Error with int converting

When I try to run>start debugging it gives me these two errors.

What should I do to fix this?

Thank you

Replace 8 with 8.0, you can replace “nebula.width/8” with “(float)(nebula.width/8”. The second option explicitly converts the result into a float and won’t result in a warning from the compiler.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms