For Stencyl 2.x only, the configuration that fits all version is described at the bottom of this page
warning; Stencyl 3.x is not able to compile this behavior, recommended version: Stencyl 2.x |
the info panel applied on the actor with anchor to screen (below)
warning; Stencyl 3.x is not able to compile this behavior, recommended version: Stencyl 2.x |
info panel - without anchor to screen
when drawing
- set color to [desired color]
- set opacity to [0 to 100] %
- [fill] rect at x:[[[x of mouse]-[x of self]]+[x of camera] y:[[[y of mouse]-[y of self]]+[y of camera] w:[desired info panel width] h:[desired info panel height]
info text - without anchor to screen
when drawing
- set current font to [desired font]
- draw [desired text] at x:[[[[x of mouse]-[x of self]]+[x of camera]]+[0.5([desired info panel width]-[get width for[desired text] using current font])]] and y:[]
you can remove the "+x of camera" and "+ y of camera" if the scene is no bigger than a screen or if the actor is anchored to screen
legends:
[] blanks
<> boolean
to help you more:
in the same behavior
The test result with Stencyl 3.3 .....sorry the print screen does not include the cursor.
No comments:
Post a Comment