PDA

View Full Version : First post- Using effects in ONScripter


HAXLION
2009-04-29, 10:26
All right, well, here goes my first post.

I'm having some difficulty in ONScripter. I'm trying to flash to a background with a curtain effect instead of a fade effect, since it gets pretty dull after a while.

I went to the tutorial, and the command is supposed to go

effect <number>,<number>(,<number>(,<character string>))

The details are here, of course:

http://nscripter.insani.org/reference/

So, I tried using the curtain effect like so:

effect 1,7,1000 (Did this before the *game_start)

and later

bg1 "bg/greenery.png"

What exactly am I doing wrong?

Sonozaki Futago-tachi
2009-04-29, 18:58
Effect Number 1 is reserved for instant display; #0 is also reserved.

Try:
effect 2,7,1000

bg 2,"bg/greenery.png"

But if you're just doing that effect once, you could specify it directly in the bg command:

bg "bg/greenery.png",7,1000


And there's a more comprehensive (O)NScripter programming guide here (http://downloads.satsuki.nl/NScrAPI/NScrAPI-framed.xml).

Mion (Sonozaki Futago-tachi)

Starchanchan
2009-04-30, 08:53
Try:
effect 2,7,1000

bg 2,"bg/greenery.png"

Effects load as "bg <number>"? I'd always loaded image effects in this format:

bg "bg/greenery.png",2

Sonozaki Futago-tachi
2009-05-01, 19:21
Effects load as "bg <number>"? I'd always loaded image effects in this format:

bg "bg/greenery.png",2

Oh, er... yeah, that's what I meant ^^;

Mion (Sonozaki Futago-tachi)

Starchanchan
2009-05-01, 22:43
Oh, er... yeah, that's what I meant ^^;

lol XD I was about to say, is this a new command mod I haven't heard about yet?