Determine sprite gravity and physics, auto acceleration of a sprite, and have the view follow the sprite?

by Adonis » Tue, 25 Jan 2011 02:51:01 GMT


Sponsored Links
 I would like to know if someone cold point me in the right direction
to:
1) Make static objects and add densities to an image.
2) Make an image automatically accelerate at a constant speed.
3) Have the players view follow the image.

Thank you for help in advanced :D

-- 



Other Threads

1. ADP1 ONLY instructions for backup, installing from git, then back to backup

I know how you feel about the writeups at xda....
I'll tell you how to backup/restore, but for compiling, you're on your
own.

* backup requires you to have an SDCARD installed with sufficient free
space to store your backup.

BACKUP:
1) First off, get your hands on JF's modified recovery.img. Best place
to find it is in JF1.31 from here: 
http://forum.xda-developers.com/showthread.php?t=466174
2) Second, get the fastboot client binary. You can build this yourself
by building the android sources, but there is a compiled binary for
linux x86 or AMD64 available here: 
http://android-dls.com/wiki/index.php?title=Fastboot
3) Add the location of the adb command to your path (I hope you
already know that adb is in the "tools" directory of the SDK)

At this point, you are worried that I'm going to tell you to write the
recovery.img onto your ADP1, overwriting the existing recovery
partition. This is NOT SO. Fastboot is much more elegant than that.

4) Start your ADP1 in fastboot mode: From power off, hold the camera
button while turning on, this will get you into a mode that says
"serial0". Plug in the USB and press the "back" button. It should now
be in fastboot mode.
5) From your computer, run the command "fastboot boot recovery.img".
This will send recovery.img to your ADP1 WITHOUT writing it and will
cause it to boot.
6) When the recovery.img has finished booting, it presents a menu, one
of which is to create a backup. The backup will be written to the
sdcard in the /nandroid/ directory.
7) "fastboot reboot" will reboot the ADP1.


Now that you have your backup, you're free to party.
Restore is similar. Boot the ADP1 into fastboot, use command i.e.
"fastboot flash system system.img" to restore system partition.





--~--~---------~--~----~------------~-------~--~----~

2. WebKit/WebView and Focus Highlighting

When viewing Web pages either in the built-in Web browser or in a
WebView canvas, focusable items get the orange highlight ring as you
navigate the page with the D-pad/trackball.

A design team I am working with wishes to create some Web content,
specifically for Android, where they handle their own focus highlighting
via Javascript/CSS and wish to disable the built-in Android focus
highlighting. In this case, the content is being viewed through a
WebView, so I have some measure of control.

I see some posts describing how to use ColorStateList, <selector>, and
android:background to affect this sort of change...for a single View.

How would one go about affecting this change for the contents of a WebView?

Thanks in advance for any advice!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~---------~--~----~------------~-------~--~----~

3. embed external activities using LocalActivityManager

4. Mac OsX 10.5 Installing repo (repo command not found)

5. P2P Android

6. Creating a form

7. Question about message flow of Android Browser..