To the instruction MoveBrush(id, xa, ya, xb, yb[, table]) in the table options will be possible the option of Transparency as in the DisplayBrush where you can give a value among 0-255? I thing that this option with MoveBrush will be difficult to implement because the instruction will have recalculate the transparency with each movement on the background and it will needs a lot of CPU usage.
Utility of this paramater, well for demos or games to do for example: ghosts, Predator effect, etc.
MoveBrush with Transparency
Re: MoveBrush with Transparency
If using Layers, you could first use: SetLayerTransparency(id, level) and then MoveBrush and afterwards again SetLayerTransparency to gain temporary transparency.
Or did I miss what you were after?
Or did I miss what you were after?
- Juan Carlos
- Posts: 710
- Joined: Mon Sep 06, 2010 1:02 pm
Re: MoveBrush with Transparency
The problem using Layers is that some instructions don't work, is more easy to use the MoveDisplay.
- airsoftsoftwair
- Posts: 4431
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: MoveBrush with Transparency
Sorry, that won't come because it goes beyond the scope of what MoveBrush() can do. The only way to do this with MoveBrush() is using layers.
- Juan Carlos
- Posts: 710
- Joined: Mon Sep 06, 2010 1:02 pm
Re: MoveBrush with Transparency
But using Layers, that it is a good solution there is problem with the use the sprites.
- airsoftsoftwair
- Posts: 4431
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: MoveBrush with Transparency
If you have layers, you don't need sprites because you can do everything with layers that can be done with sprites.