Search found 20 matches

by fjudde
Wed May 04, 2016 11:26 am
Forum: Newbie questions
Topic: ExitOnError() description
Replies: 9
Views: 9511

Re: ExitOnError() description

Not really sure what you mean, But I will give it a try: Functions will not exit when there is an error. And as long as you do not overwrite the variable that you stored the error code in, you can use it whenever you want, if it’s in your reach (global is good for reach). Try out the code below. ;) ...
by fjudde
Mon May 02, 2016 5:25 pm
Forum: Newbie questions
Topic: help with sprite collision
Replies: 2
Views: 3792

Re: help with sprite collision

When I work with sprites I use constants with describing names instead of variables: @SPRITE 1, "I-PointBlack.png", {Transparency = #WHITE} Const #Ipoint = 1 ... Well, this is even better, the constants first! Const #Ipoint = 1 @SPRITE #Ipoint, "I-PointBlack.png", {Transparency ...
by fjudde
Sun May 01, 2016 7:57 pm
Forum: Newbie questions
Topic: help with one sprite blacking out another sprite
Replies: 10
Views: 11564

Re: help with one sprite blacking out another sprite

... " a 2x2 sprite should not totally blackout a 10x10 sprite when it goes over/near it" when it comes to sprite order determining sprite display priority this doesn't work when you have sprites moving around the screen Do you say that a small sprite makes a bigger sprite disappear when t...
by fjudde
Sun May 01, 2016 7:40 pm
Forum: Newbie questions
Topic: help with sprite collision
Replies: 2
Views: 3792

Re: help with sprite collision

We need to see more of the code. Which values have you assigned to the variables sprite1 and sprite3? You need to give them the same number as the corresponding sprites When I work with sprites I use constants with describing names instead of variables: @SPRITE 1, "I-PointBlack.png", {Tran...
by fjudde
Sat Apr 30, 2016 5:37 pm
Forum: Newbie questions
Topic: help with one sprite blacking out another sprite
Replies: 10
Views: 11564

Re: help with one sprite blacking out another sprite

@airsoftsoftwair
airsoftsoftwair wrote:@fjudde:
I could add a function that allows you to change the z-order of sprites
That would be nice! Something like SetSpriteZPos(id, zpos)? If so a new attribute #ATTRZPOS to the object #SPRITE could become handy.

@sesco
Sorry for derailing your tread.
by fjudde
Fri Apr 29, 2016 9:50 pm
Forum: Newbie questions
Topic: help with one sprite blacking out another sprite
Replies: 10
Views: 11564

Re: help with one sprite blacking out another sprite

I had the same problem so I am curious about the correct answer. I “Solved” it by making sure I displayed the sprites in correct order, bottom sprite first and top sprite last. And when I needed to move a sprite up to the top I removed (RemoveSprite()) that sprite and redisplayed (DisplaySprite()) i...
by fjudde
Fri Apr 08, 2016 6:01 pm
Forum: Newbie questions
Topic: ShowPointer() function hide pointer for a second?
Replies: 6
Views: 6577

Re: ShowPointer() function hide pointer for a second?

Ok! I understand. I knew I was missing something. Thanks
by fjudde
Fri Apr 08, 2016 5:26 pm
Forum: Newbie questions
Topic: ShowPointer() function hide pointer for a second?
Replies: 6
Views: 6577

Re: ShowPointer() function hide pointer for a second?

I just downloaded "HW61_Win32_Setup.exe" from the download area and installed it, then i tested my little code Wait(5000, #MILLISECONDS) Repeat ShowPointer() NPrint("Showpointer") For i = 1 To 10 Wait(1000, #MILLISECONDS) Print(i,".") Next Forever Maybe I am stupid (Sor...
by fjudde
Tue Apr 05, 2016 7:58 pm
Forum: Newbie questions
Topic: ShowPointer() function hide pointer for a second?
Replies: 6
Views: 6577

ShowPointer() function hide pointer for a second?

If I use the function ShowPointer() when the pointer is not hidden, the pointer disappears for a second. Is it supposed to do that? If so is there a way to check the status of the pointer? Or do I have to keep track of the status myself?