TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
how to setup an onscreen speedometer?
Pages:
1
how to setup an onscreen speedometer?
miketv
Posts: 42
August 08, 2012, 09:54:28 am
I've been tinkering with it, & so far I've been able to come up with a
timer
by creating 2 Scene Behaviors (called "Timer" & "Draw Timer") and creating a new Game Attribute ("Time"), but I can't figure out how to get the actor's actual current
speed
(in pixels per second). Any help?
rob1221
Posts: 9472
August 08, 2012, 10:18:29 am
There are blocks for X-speed and Y-speed, but unless you're just moving left/right/up/down you'll need to use trigonometry to find the overall speed. I don't know what the unit of measure is.
https://twitter.com/Rob1221dev
Hectate
Posts: 4643
August 08, 2012, 03:00:06 pm
Pixels per second, I believe is the measurement that Flixel uses. Having Box2D integrated might alter that though because it measures in Meters (per second). I'm not sure what the scale is of pixels to meters.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.
Pages:
1