Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
08e20cd6
Commit
08e20cd6
authored
Jan 02, 2013
by
halatmit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix documentation for sprite interval property
Change-Id: I5c0b2da704b34707ca5418dc28d37aa95750d4e9
parent
7fec970c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
appinventor/components/src/com/google/appinventor/components/runtime/Sprite.java
...src/com/google/appinventor/components/runtime/Sprite.java
+4
-4
No files found.
appinventor/components/src/com/google/appinventor/components/runtime/Sprite.java
View file @
08e20cd6
...
...
@@ -39,7 +39,7 @@ public abstract class Sprite extends VisibleComponent
private
static
final
String
LOG_TAG
=
"Sprite"
;
private
static
final
boolean
DEFAULT_ENABLED
=
true
;
// Enable timer for movement
private
static
final
int
DEFAULT_HEADING
=
0
;
// degrees
private
static
final
int
DEFAULT_INTERVAL
=
100
0
;
// ms
private
static
final
int
DEFAULT_INTERVAL
=
100
;
// ms
private
static
final
float
DEFAULT_SPEED
=
0.0f
;
// pixels per interval
private
static
final
boolean
DEFAULT_VISIBLE
=
true
;
private
static
final
double
DEFAULT_Z
=
1.0
;
...
...
@@ -211,9 +211,9 @@ public abstract class Sprite extends VisibleComponent
* @return timer interval in ms
*/
@SimpleProperty
(
description
=
"<p>The interval
, in milliseconds,
at which the sprite's "
+
"position is updated. For example, if the
speed is 10, the sprite will
"
+
"
move 10 pixels every interval
.</p>"
,
description
=
"<p>The interval
in milliseconds
at which the sprite's "
+
"position is updated. For example, if the
interval is 50 and the speed is 10,
"
+
"
then the sprite will move 10 pixels every 50 milliseconds
.</p>"
,
category
=
PropertyCategory
.
BEHAVIOR
)
public
int
Interval
()
{
return
timerInternal
.
Interval
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment