development > releases

Tutorial: Dimensions & Coordinates (swf, camera, level, hud, mouse, fullscreen)

(1/1)

wg/funstorm:
READ TUTORIAL HERE

Why do we have to set multiple sizes?
How do I get the mouse position on screen?
How can I make things stay on screen when the camera moves?
Why are things not colliding past a certain point?

I see these questions come up on the forums all the time and it took me a while at first to wrap my head around how flixel likes to be configured, so I wrote up a quick tutorial to help others.

It covers:

* Swf size
* Camera view size
* Camera view zoom
* Swf = camera * zoom
* Level size
* Camera travel limits
* Hud Mouse cursor (world & screen positions)
Released along with a demo and source code:

READ TUTORIAL HERE

KunoNoOni:
Wow that was really informative! Appreciate the time you took to make it :)


-KunoNoOni

wg/funstorm:
New tutorial up!

How to use Flash's fullscreen mode with Flixel and dynamic window resizing:

http://www.funstormgames.com/blog/2011/10/flixel-fullscreen-mode-and-resizeable-windows/

Works well when paired with the previous tutorial :)

Kytin:
Just thought I would say that these are great.  :-*
Nicely made and easy for people to understand.

OldmanBiles:
I didn't see this hiding up here!
I've used a pretty much identical code here.
Nice one.

Navigation

[0] Message Index

Go to full version