Mode 7 Via Backgrounds?

Rukiri

  • Posts: 88
Just wondering if anyone has attempted Mode 7 via background images instead of using your maps from the level builder?

I've coded mode 7 in pure as3, just wondering if stencyl would render everything the same as it would if it was just pure code?

Alexin

  • *
  • Posts: 3127
If you use AS3 instead of Design Mode, then you can draw directly into the screen's BitmapData using FlxG.buffer. See Flixel's documentation for more information.
"Find the fun"
alexin@stencyl.com

Rukiri

  • Posts: 88
If you use AS3 instead of Design Mode, then you can draw directly into the screen's BitmapData using FlxG.buffer. See Flixel's documentation for more information.
Did not know that, and didn't know flixel was the framework around stencyl :P 

Alexin

  • *
  • Posts: 3127
Keep in mind the engine draws onto the buffer no matter what. It means that if you intend on doing your own rendering, then keep the scene as empty as you can to avoid more overhead.

Also, since you can't specify a layer to draw on (which makes sense you use the buffer directly), then delegate the rendering to a dummy actor, located in the layer you wish.
"Find the fun"
alexin@stencyl.com

Darkhog

  • Posts: 1243
Rukiri, also I think Jon would be happy if you give him m7 code, because it would make easier to implement this directly into Stencyl.

There are no impossible things. There is only lack of skills.
Don't click this if your computer has less than 641 kilobytes of RAM.
Stencyl stencyling stencylish stencylers :D

Jon

  • *
  • Posts: 17524
Better yet, if he can get it working in a game, and the implementation can be generalized, that would make more sense.

Darkhog

  • Posts: 1243
@UP: That what I meant.

There are no impossible things. There is only lack of skills.
Don't click this if your computer has less than 641 kilobytes of RAM.
Stencyl stencyling stencylish stencylers :D