Jump to content

making an image move in GUI?


Go to solution Solved by Danyfirex,

Recommended Posts

I have recently been trying to create movement in a GUI. I've determined through research that I will most likely need to use the GDIplus functions but I've been unable to find much that helps me achieve exactly what I am trying to do.

The idea is to draw an image in a GUI and then make that image move across the GUI based on the user pressing the arrow keys. I can handle the drawing an image to a GUI rather easily but I have yet to be able to successfully make it move despite hours of effort.

I've found some scripts that when executed achieve what I am trying to but I am unable to follow them to find out how they did it or why what they are doing is working because the dev notes are in other languages.

can anyone point me in the direction of any example scripts that may help me out or give me any pointers?

Link to comment
Share on other sites

  • Solution
Link to comment
Share on other sites

  • 2 weeks later...

Both of these work for what I'm trying to do. The first example allows for a bit more what I'm aiming for except I cannot figure out how to make the frame transparent or invisible so the background of the GUI is visible.

All of my attempts have only made the GUI itself invisible or transparent. I Haven't even really been able to change the color of the frame no matter what I changed. I've tried _winapi_setLayeredwindowattributes and _winApi_setbkcolor but neither seem to have the effect I'm searching for.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...