Page 147 of 396

Re: Ask a simple question, get a simple answer

Posted: Sun Aug 21, 2016 2:03 am
by AndakRainor
Good point! But then, how would I move the particles toward a specific point (the party's center) ?

Re: Ask a simple question, get a simple answer

Posted: Sun Aug 21, 2016 4:00 am
by minmay
Oh, come to think of it, you *can* get the position of a node. Use MonsterComponent:shootProjectile() and check the projectile's position.

Re: Ask a simple question, get a simple answer

Posted: Sun Aug 21, 2016 4:14 am
by AndakRainor
You mean MonsterComponent:shootProjectile(projectile, height, attackPower) ? I tried it with "blob",0,0, but it spawns on the floor and height is not optional, so....

Re: Ask a simple question, get a simple answer

Posted: Sun Aug 21, 2016 4:37 am
by minmay
AndakRainor wrote:You mean MonsterComponent:shootProjectile(projectile, height, attackPower) ? I tried it with "blob",0,0, but it spawns on the floor and height is not optional, so....
The Components page is incomplete, I just updated it. shootProjectile() takes a fourth argument which is the name of the node to shoot the projectile from. Look at the dark acolyte definition for an example.

Re: Ask a simple question, get a simple answer

Posted: Sun Aug 21, 2016 4:47 am
by AndakRainor
Perfect! (This means I will have to re-upload the orrr3 version if you can wait a little more).

Re: Ask a simple question, get a simple answer

Posted: Sun Aug 21, 2016 5:07 am
by minmay
Of course, no problem.

Re: Ask a simple question, get a simple answer

Posted: Sun Aug 21, 2016 2:44 pm
by THOM
I am building an intro cinematic by using GameMode.showImage()

after the last picture is shown it remains on the screen until the player pressed the mouse-key. Is there a way to clear the screen from that picture?

Re: Ask a simple question, get a simple answer

Posted: Mon Aug 22, 2016 11:31 am
by Isaac
I haven't seen a way to do this. I was surprised to find that starting a video stream will play the video over the shown image, but not dismiss it. I found out that showImage does not like nil passed to it, and yet strangely succeeds if nothing at all is passed; but it prints an alphabet font instead of an image.
[update: it's a mistake; it is showImage("") that does this.]

Re: Ask a simple question, get a simple answer

Posted: Mon Aug 22, 2016 6:25 pm
by minmay
Isaac wrote:I found out that showImage does not like nil passed to it, and yet strangely succeeds if nothing at all is passed
...Passing only nil arguments, and passing nothing, are the exact same thing.

Re: Ask a simple question, get a simple answer

Posted: Mon Aug 22, 2016 7:15 pm
by Isaac
minmay wrote:
Isaac wrote:I found out that showImage does not like nil passed to it, and yet strangely succeeds if nothing at all is passed
...Passing only nil arguments, and passing nothing, are the exact same thing.
I would have thought so... but try it yourself. :?

GameMode.showImage(nil) results in an error.
GameMode.showImage() results in ~a picture, of one of the font sprite sheets. :shock: [update: it's a mistake; it is showImage("") that does this.]
Clearly the function isn't treating them as the same.

**Of course now that I try it today, it's not giving the same results as last night. :evil:
I'll get a screenshot of it, and find out the why/how of it.

**Got it. It isn't nil or lack, it's the use of an empty string that does it. Not the same as nil; but still very weird.

GameMode.showImage("") results in ~a picture, of one of the font sprite sheets. :shock: