andengine

AndEngine Applying Transparancy to AndEngine View

十年热恋 提交于 2019-12-11 04:38:34
问题 I am developing a game with the help of andEngine in Android. I have defined background in layout xml and trying to put some component on the screen using AndEngine. But the AndEngine captured area is not transparent. All the background captured by AndEngine goes black. I am using org.andengine.opengl.view.RenderSurfaceView in xml and LayoutGameActivity in code. Thanks in advance for the time you will spend trying to help me. 回答1: Have a look at BaseAugmentedRealityGameActivity class from the

unable to add andEngine Extensions - module

自作多情 提交于 2019-12-11 03:08:22
问题 I have added andEngine to my project as a module, but I could not able to add box2d extentsions. I have tried these ways. project structure > import module and it says "select modules to import" . So, I tried to add it manually. I have added code to settings.gradle and build.gradle. It says "Error:Configuration with name 'default' not found." and this "configuration with name 'default' not found" I am sure about my folders are correct. I tried every combinations. What should I do? andEngine

Not able to run game on emulator (Andengine)

徘徊边缘 提交于 2019-12-11 02:29:59
问题 I'm developing a game using andEngine. Game is running on device,but it is not running on emulator. Game exits and is redirected to home screen. What might be the issue? No any Errors in Logcat . 回答1: It is because of openGPL.ES2 of AndEngine library requires device should have and enable OpenGLES. You must: Install Android SDK versio >=19 with compatible AVD manager. And config in Eclipse for your Android Virtual Device with GPU emulation = yes in Hardware config part on the AVD Manager

How to add the libandenginephysicsbox2dextension.so file in Android Studio | Andengine

ぃ、小莉子 提交于 2019-12-11 02:28:53
问题 I wanted to develop an app with Android Studio using the Andengine. After I have imported the andengine.jar and the libandenginephysicsbox2dextension.jar everything seemed to work correctly. At the point where the PhysicsWorld is created: private void createPhysics() { physicsWorld = new FixedStepPhysicsWorld(60, new Vector2(0, -17), false); registerUpdateHandler(physicsWorld); } this exception appears: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data

Andengine loading graphics: why is my background texture small and upside down

老子叫甜甜 提交于 2019-12-11 01:06:21
问题 Recently, I started working on android 2D game using Andengine on eclipse. When I try to load my background texture, I get this figure on my tablet (zync 930 plus) Here is my code: ResourceManager.java class package com.example.parkmycar; import org.andengine.engine.Engine; import org.andengine.engine.camera.BoundCamera; import org.andengine.opengl.texture.TextureOptions; import org.andengine.opengl.texture.atlas.bitmap.BitmapTextureAtlas; import org.andengine.opengl.texture.atlas.bitmap

What is wrong with my code PhysicsRemoveExample.java (AndEngine)?

北城以北 提交于 2019-12-10 20:19:19
问题 Trying to make the example PhysicsRemoveExample.java from here. I get this message when the program starts: Sorry! The application PhysicsRemoveExample(process org.anddev.andengine.PhysicsRemoveExample) has stopped unexpectedly. Please try again. I have Build Path andengine.jar and andenginephysicsbox2dextension.jar assets/gfx -> face_box_tiled.png and face_circle_tiled.png . This is my Java code in PhysicsRemoveExample.java . Same as in the example, though I have changed to extends

Admob Unable to destroy activity

半城伤御伤魂 提交于 2019-12-10 19:46:00
问题 Although I have not witnessed this on any of my devices which is more frustrating, I have this stack trace coming through from users in the Market, java.lang.RuntimeException: Unable to destroy activity sbsoftware.jewelgobbler/com.google.ads.AdActivity}: java.lang.NullPointerException at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:2676) at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:2694) at android.app.ActivityThread.access$2100

Could not find method implementation() for arguments

南楼画角 提交于 2019-12-10 17:25:20
问题 I try to run my app, but gradle doesn`t want to compose it. Can you tell me what should I do ? Error:(36, 0) Could not find method implementation() for arguments [com.google.firebase:firebase-appindexing:11.6.2] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. My app build.gradle file minSdkVersion 14 targetSdkVersion 22 signingConfig signingConfigs.config } buildTypes { release { debuggable false minifyEnabled false proguardFiles

Why am I getting an update thread null pointer exception (Android AndEngine)?

允我心安 提交于 2019-12-10 16:00:02
问题 I'm new to using AndEngine and am trying to get a sprite to increase in size on touch . It kind of works, but will suddenly get this error sometimes. Any ideas? At this point, I just need enough text so SO will let me post my question. If anyone needs any more information, let me know and I will post it. I'm very open to ideas. If you have a better way or see a problem with my code, please let me know. At this point, the physics world doesn't even work. 06-17 22:44:25.809: E/AndroidRuntime

AndEngine: collision of two sprites

旧城冷巷雨未停 提交于 2019-12-10 15:54:07
问题 I am developing a small Android game. Before I started using AndEngine, I used the Canvas object and draw everything on it. For testing if two bitmaps collides with each other I checked if their bounding boxes overlap. In case of this, I checked if the overlapping rectangle of both bitmaps got one none transparent pixel in common. This method worked perfektly and I was able to detect pixel perfect collisions. Because of some performance issues I started using AndEngine. Collision detection