本文整理汇总了C++中object::Sound方法的典型用法代码示例。如果您正苦于以下问题:C++ object::Sound方法的具体用法?C++ object::Sound怎么用?C++ object::Sound使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类object
的用法示例。
在下文中一共展示了object::Sound方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: FxShadowWalkStop
func FxShadowWalkStop(object target, proplist effect, int reason, bool temporary)
{
if(temporary || !target)
return;
target.Visibility = VIS_All;
target->SetClrModulation(RGBa(255, 255, 255, 255));
target->Sound("reappear", false, 50);
//target->CreateParticle("Smoke", PV_Random(-5,5), PV_Random(-10,10), PV_Random(-5,5), 0, 30, Particles_Smoke(), 20);
}
示例2: Launch
func Launch(object clonk, int x, int y)
{
CreateParticle("Smoke", PV_Random(-5,5), PV_Random(-10,10), PV_Random(-5,5), 0, 30, Particles_Smoke(), 20);
clonk.Visibility = VIS_Owner;
clonk->SetClrModulation(RGBa(255,255,255,50));
clonk->Sound("vanish", false, 50);
var fx = AddEffect("ShadowWalk", clonk, 20, 1, nil, GetID());
fx.dur = Dur;
RemoveObject();
}
示例3: Launch
func Launch(object clonk, int x, int y)
{
if(clonk.TimeTravelMark == nil)
{
clonk.TimeTravelMark = [clonk->GetX(), clonk->GetY()];
clonk.timeposfx = AddEffect("TravelPos", clonk, 1, 1, nil, GetID(), Size);
clonk.timeposfx.size = Size;
clonk.timeposfx.dur = Dur;
clonk->Sound("travel_pos", false, 30, clonk->GetOwner());
RemoveObject();
return 1;
}
示例4: JumpEffect
func JumpEffect(object clonk, dir)
{
var from;
var to;
if (dir == "Up")
{
from = 50;
to = 130;
}
if (dir == "Left")
{
from = -30;
to = 50;
}
if (dir == "Right")
{
from = 130;
to = 210;
}
if (dir == "Down")
{
from = 230;
to = 310;
}
clonk->Sound("time_hit", false, 30);
for(var i = from; i < to; i+=5)
{
var r = 10;
var x = clonk->GetX() + Cos(i, r);
var y = clonk->GetY() + Sin(i, r);
var angle = Angle(0,0,Cos(i, r),Sin(i, r));
var trailparticles =
{
Prototype = Particles_ElectroSpark2(),
Size = PV_Linear(10,0),
Rotation = angle,
R = 255,
G = 165,
B = 50,
OnCollision = PC_Bounce(),
};
CreateParticle("Lightning", x, y, Cos(i, r), Sin(i, r), 10, trailparticles);
}
}
示例5: ControlUseStart
func ControlUseStart(object clonk, int x, int y)
{
clonk->Sound("Objects::WallKit::Click");
SetPreview(clonk,x,y);
return true;
}