找回密码
 点一下
查看: 2342|回复: 13

请高人指点如何实现立式环状效果

[复制链接]
发表于 2007-12-10 06:21:53 | 显示全部楼层 |阅读模式
我想的效果是这样:用多个辅助单位组成一个 直立的 原地滚动的 “圆环”。

形象点讲~就像是游乐场里“摩天轮”的效果。

在下实在想破头试爆机器都无法实现

期待高人指点!感激不尽!

小鬼鬼我在这里拜求了!
发表于 2007-12-10 09:16:53 | 显示全部楼层
你去jass区找找狡猾的兔子做的演示
回复

使用道具 举报

发表于 2007-12-10 13:13:35 | 显示全部楼层
[codes=jass]
globals
    unit array wisp
    real angle=0
    real height=200
    real radius=200
    real speed=0.02
   
    constant real step=bj_PI/6
endglobals
function flying takes nothing returns nothing
    local integer index=0
    set angle=angle+speed
   
    loop
        exitwhen index>11
        call SetUnitXYZ(wisp[index],radius*Cos(step*index+angle),0,height+radius*Sin(step*index+angle))
        set index=index+1
    endloop

endfunction
function Trig_fly_Actions takes nothing returns nothing
    local integer index=0
    loop
        exitwhen index>11
        set wisp[index]=CreateUnit(Player(2),'ewsp',0,0,0)
        call SetUnitColor(wisp[index],ConvertPlayerColor(index))
        call UnitFlyAble(wisp[index])
        set index=index+1
    endloop
     call TimerRun(function flying,0.02,true)
endfunction
[/codes]
说明都在地图里.
就是12个不同颜色的小精灵,在一个圆圈上转悠.

fly.w3x

21 KB, 下载次数: 35

回复

使用道具 举报

发表于 2007-12-10 13:17:19 | 显示全部楼层
TimerRun:  只不过是一个计时器函数而己
UnitFlyAble:   调用过后,让单位可以飞了
SetUnitXYZ:   如果单位可以飞的话,调用这个函数后,可以设置单位的X,Y,Z值.

//以上函数在zhuzhu.j中.
回复

使用道具 举报

发表于 2007-12-10 21:01:34 | 显示全部楼层
卖羔的。。。。。。 zhuzhu.j
回复

使用道具 举报

发表于 2007-12-10 21:37:28 | 显示全部楼层
引用第4楼151373880于2007-12-10 21:01发表的  :
卖羔的。。。。。。 zhuzhu.j
对我有意见么?  有意见你就说吧.  直说. 
回复

使用道具 举报

发表于 2007-12-11 07:45:43 | 显示全部楼层
zhuzhu.j很好很强大
回复

使用道具 举报

发表于 2007-12-11 17:12:10 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

发表于 2007-12-11 18:19:15 | 显示全部楼层
原来这个造型yd的技能是立体的啊,我当时都没有下演示!
回复

使用道具 举报

发表于 2007-12-11 19:29:11 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

 楼主| 发表于 2007-12-13 14:30:02 | 显示全部楼层
.....~~~~摩天轮~~~~

待我下载了看看效果吧!!!

感谢LS~以及以上
回复

使用道具 举报

发表于 2007-12-13 23:49:51 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

traxex 该用户已被删除
发表于 2007-12-14 00:13:02 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

 楼主| 发表于 2007-12-22 23:36:08 | 显示全部楼层
感谢强大的everyguo老大和强悍的朱朱大老~~

在你们的指导下~~我也搞成我想要的效果了!!谢谢你们
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-5-2 21:43 , Processed in 0.108854 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表