How to make an image bounce around the screen like a screensaver?
I'm trying to make a program for a friend which has an image that moves around the screen and bounces off from the sides. The problem is that I have no idea how to do this or to even start trying to make it happen. Does anyone have any pointers?
18 Replies
well, first you'll need a program that displays an image
then you need to figure out how to move the image
borederless layered window
then figure out how to change its direction when it hits an edge
In that order? 🤔
i mean, you asked for pointers
ideally
i'd say that's a reasonable order if you have no idea where to start
Makes sense, thanks
it can of course be broken down into even smaller tasks
but that's the case with any program and is what programming skill boils down to, your ability to break a big problem into small ones
So I assume I need to use Windows Forms App template for this on Visual Studio?
Or WPF
you could, that's not the only GUI framework for .NET and is realistically a bad choice for a serious application
but for this project it's fine
I see, is there a list somewhere of all the different commands for this purpose so I can look up what exists and what can be done?
yes, google
specifically "<x> documentation"
alright, thanks!
Breaking the chrome on winforms is ( used to be? ) challenging.
nah its just a couple of style flags
wpf should be easy. if you can turn it into a popup window (which is a borderless window) and resize it to the size of the screen