图片显示添加遮罩(实现渐变效果)
$gameScreen.showPicture(1,"1",0,0,0,100,100,255,0)$gameScreen.maskPicture(1,"a",1,)
$gameScreen.maskPictureTone(1,[-255,-255,-255,0],100,)
https://rpg. blue/data/attachment/forum/201804/18/001449y0c0nw9hu151aqa9.gif
$gameScreen.maskPictureTone(1,,100,[-255,-255,-255,0])
https://rpg. blue/data/attachment/forum/201804/18/001450o6otapppydx7mt67.gif
* 设置遮罩图片
* $gameScreen.maskPicture(pictureId, name, scale, pos)
* @param {number} pictureId 图片id
* @param {string} name 遮罩名称 放在img的pictures文件夹中的图片
* @param {number} scale 遮罩比例
* @param {} pos 遮罩位置
*
*
* 改变id图片遮罩色调
* $gameScreen.maskPictureTone(pictureId,tone, duration, baseTone)
* @param {number} pictureId 图片id
* @param {} tone 目标色调
* @param {number,} duration 持续时间
* @param {} baseTone 基础色调 不设置为
https://rpg. blue/data/attachment/forum/201804/18/001755hsmfi3cc0fss1e3z.png
0
本帖来自P1论坛作者汪汪,因Project1站服务器在国外有时候访问缓慢不方便作者交流学习,经联系P1站长fux2同意署名转载一起分享游戏制作经验,共同为国内独立游戏作者共同创造良好交流环境,原文地址:https://rpg. blue/forum.php?mod=viewthread&tid=406683若有侵权,发帖作者可联系底部站长QQ在线咨询功能删除,谢谢。
页:
[1]