Sign in to follow this  
Followers 0
Achilles

Creating overlapping pictures is causing a bug

4 posts in this topic

#1 ·  Posted (edited)

I am making a card game and in the script several card images overlap... this causes a problem with the pictures blending...

I have included a simple script that demonstrates the problem: Problem.zip

EDIT: See next post for solution

Edited by Piano_Man

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Hello Piano_Man!

I created the blank pictures before the GuiSetState() and then used GuiCtrlSetImage()

Sorry if my advise is stupid, you try this?:

GuiCreate('Testing', 190, 125)

$x = 10

For $index = 1 to 7 
    GuiCtrlCreatePic(@ScriptDir & '\c' & $index & '.jpg', $x, 15, 71, 96)
    $x += 16
Next

GuiSetState()

While 1 
    Switch GuiGetMsg() 
        Case -3 
            Exit 
            
    EndSwitch 
WEnd

:)

Edited by rasim

Share this post


Link to post
Share on other sites

I realized that would work too, for the given problem... however this is going to be a card game in which cards are dealt multiple times... I can't recreate the whole GUI (or rather don't want to) every time in order to have the cards set up...


My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
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
Sign in to follow this  
Followers 0