伺的なフォーラム

伺か向けのフォーラム。自由に使ってください。ユーザアカウント登録なしで閲覧できます。

共有アカウント: 774user / 774user

ログインしていません。

#1 Re: 開発 » 文/YAYAでの開発相談 » 2017-08-09 17:22:06

774user さんの発言:

#31
get,propetyを使います。
何が取得出来るのかは、ukadocを参照してください。

getCoordinate
{
    _ret = ''
    _ret += '\![get,property,OnGetCoordinate,'
    _ret += 'currentghost.scope(0).x,currentghost.scope(0).y,'
    _ret += 'currentghost.scope(1).x,currentghost.scope(1).y
    _ret += ']'
    _ret
}

OnGetCoordinate
{
    sakuraPosX = reference[0]
    sakuraPosY = reference[1]
    keroPosX = reference[2]
    keroPosX = reference[3]
}

// any event
OnRandomTalk
{
    _talk = ''
    _talk += getCoordinate()
    _talk += '\![embed,OnCoodinateTalk]'
    _talk
}

OnCoodinateTalk
{
    _talk = ''
    _talk = '\0My X is ' + sakuraPosX + '.'
    _talk = '\1My Y is ' + keroPosY + '.'
    _talk
}

I have try this one, but that only can get the coord for last time, like

The first time X = 100, Y = 200, that show nothing.
Second time X = 150, Y = 200, that show X = 100, Y = 200
The third time X = 200, Y = 250, that show X = 150, Y = 200 etc.

#2 Re: 開発 » 文/YAYAでの開発相談 » 2017-08-02 22:18:19

Hi is me again!
I want to know the sakura and kero coordinate (X, Y) in the screen, how do I get that?
I want the kero follow the sakura's moving, and the kero just can move around the sakura.
And also I want to know how far they from each other

#3 Re: 開発 » 文/YAYAでの開発相談 » 2017-06-22 20:05:26

774user さんの発言:


関数「OnEventName」を呼び出す


関数「OnFetchBootingGhostNameList」を呼び出す

thank's at all!it's work!

#4 Re: 開発 » 文/YAYAでの開発相談 » 2017-06-21 11:30:50

I want to make a list to know which ghost is in started,but the On_otherghostname and ghostexlist is not working, That only can get ghostexcount to know how many are there.
how can I get the list for the starting ghost's name?

Board footer

Powered by FluxBB