Java Code Examples for org.andengine.entity.IEntity#setY()

The following examples show how to use org.andengine.entity.IEntity#setY() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MoveYModifier.java    From tilt-game-android with MIT License 4 votes vote down vote up
@Override
protected void onSetInitialValue(final IEntity pEntity, final float pY) {
	pEntity.setY(pY);
}
 
Example 2
Source File: MoveYModifier.java    From tilt-game-android with MIT License 4 votes vote down vote up
@Override
protected void onSetValue(final IEntity pEntity, final float pPercentageDone, final float pY) {
	pEntity.setY(pY);
}
 
Example 3
Source File: CameraScene.java    From tilt-game-android with MIT License 4 votes vote down vote up
public void centerEntityInCameraVertically(final IEntity pEntity) {
	pEntity.setY(this.mCamera.getCenterY());
}
 
Example 4
Source File: MoveYModifier.java    From 30-android-libraries-in-30-days with Apache License 2.0 4 votes vote down vote up
@Override
protected void onSetInitialValue(final IEntity pEntity, final float pY) {
	pEntity.setY(pY);
}
 
Example 5
Source File: MoveYModifier.java    From 30-android-libraries-in-30-days with Apache License 2.0 4 votes vote down vote up
@Override
protected void onSetValue(final IEntity pEntity, final float pPercentageDone, final float pY) {
	pEntity.setY(pY);
}