def icon_update
for i in [email protected]
@sprite.active = (self.index == i)
@sprite.x = self.x + i * 24
@sprite.y = self.y + 0
@sprite.z = (self.index == i) ? self.z + 2 : self.z + 1
@sprite.visible = self.visible
@sprite.update
end
end
以下引用lindu于2008-8-7 11:11:54的发言:
间距可以改了,但是还是一行的
我想做成像仙剑那样的 ***
*** ***
***
就这种上下左右的,怎么改,帮我改下好不
以下引用lindu于2008-8-7 16:32:02的发言:
用了以后是这个
怎么搞
脚本‘图标战斗’的199行发生了NoMethodError.undefined method `x=` for nil:NilClass
怎么搞
@sprite.active = (self.index == i)
@sprite.x = self.x + i * 24
@sprite.y = self.y + i * 24
@sprite.z = (self.index == i) ? self.z + 2 : self.z + 1
@sprite.visible = self.visible
@sprite.update
@sprite.active = (self.index == i)
@sprite[0].x = 400
@sprite[0].y = 150
@sprite[1].x = 425
@sprite[1].y = 180
@sprite[2].x = 400
@sprite[2].y = 210
@sprite[3].x = 425
@sprite[3].y = 240
@sprite.z = 9999
@sprite.visible = self.visible
@sprite.update
end
@sprite[1].x = self.x + 24
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |