G
G
GineTik2021-02-11 16:22:08
C++ / C#
GineTik, 2021-02-11 16:22:08

How to move an object by 0.55f in c#?

Hey!

I want to move the object diagonally, for example,
60252eb4b8307886293848.png
and I need to move, for example, x by 1, and y by 0.55.

BUT the Location property only accepts an int. How to make that would accept and float ???

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2021-02-11
@GineTik

Locationaccepts Point, not int. The position is given in pixels. What is the part of a pixel in your opinion and how should it be displayed?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question