RUBE Loader Project

  ... the case you feel the need for a new feature or want to submit one.

Re: RUBE Loader Project

Postby tanrobles » Fri May 09, 2014 4:50 pm

hello everyone

Nazgee, I like your work!

But, I have something question about that.

I am trying to use a "smooth camera", but I have a problem, I need that the camera follow a Sprite.

I have seen that you can get a Body and Image of RubeDef.

But can I get a sprite?

I need the sprite to set them into my camera "setChaseEntity()"

Thank you very much! :geek:
tanrobles
 
Posts: 4
Joined: Wed Feb 26, 2014 5:34 am

Re: RUBE Loader Project

Postby Androidacct » Sat May 10, 2014 2:29 pm

What I have done is this: IEntity carChasis = rubeDef.getImageByName("chassisimage");
You can then setChaseEntity that.
Zapper - A great game that tests your reflexes and concentration levels.
Image
https://play.google.com/store/apps/details?id=com.casualgames.zapper
Androidacct
 
Posts: 80
Joined: Wed Jan 29, 2014 12:29 am

Re: RUBE Loader Project

Postby shefchenko » Tue Jun 10, 2014 8:36 pm

Androidacct wrote:Has anyone actually released a game using RUBE and Nazgee's loader? I was just wondering if there are any limitations? Is it noticeably slower to load compared to other games made using Andengine without rube? Cheers.

My game is with Rube loader too and goes good, there is no slowing or such things.
Thanks again Nazgee :)
Image
User avatar
shefchenko
 
Posts: 23
Joined: Sat Jul 20, 2013 2:41 pm

Re: RUBE Loader Project

Postby skinwalker » Fri Jun 27, 2014 2:29 pm

Hey I have one question, I have this code and I want to add a collision detection between coin and truckImage

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.                 truckImage = rubeDef.getImageByName("image0");
  2.                 coin = rubeDef.getImageByName("image3");
  3.  
  4.  
Parsed in 0.011 seconds, using GeSHi 1.0.8.4


I don't know why I can't use this function to handle collision, which I use with entities and sprites

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. IEntity entity = new Entity(){
  2.                         @Override
  3.                         protected void onManagedUpdate(float pSecondsElapsed) {
  4.                                
  5.                                 super.onManagedUpdate(pSecondsElapsed);
  6.                                  //if(this.collidesWith(truckImage) execute something
  7.  
  8.                         }
  9.                 };     
  10.  
  11.  
Parsed in 0.011 seconds, using GeSHi 1.0.8.4


Any ideas?

PS: I have around 10 coins and I don't have bodies


UPDATE : I found how to solve this, I should have used

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. IEntity[] coin = coin = rubeDef.getImagesByName("coinImage");
  2.  
  3.  
Parsed in 0.011 seconds, using GeSHi 1.0.8.4


you must use this if you want to target more than 1 image with the same name and then

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. IUpdateHandler collisionDetector = new IUpdateHandler() {
  3.                        
  4.                         @Override
  5.                         public void reset() {
  6.                                 // TODO Auto-generated method stub
  7.                                
  8.                         }
  9.                        
  10.                         @Override
  11.                         public void onUpdate(float pSecondElapsed) {
  12.                                
  13.                                 for(int i = 0; i < coin.length; i ++){
  14.                                         if(coin[i].collidesWith(truckImage)){
  15.                                                 coin[i].setVisible(false);
  16.                                         }
  17.                                        
  18.                                 }
  19.  
  20.  
  21.                         }
  22.                        
  23.                 };
  24.                
  25.                
  26.                 registerUpdateHandler(collisionDetector);
  27.  
Parsed in 0.012 seconds, using GeSHi 1.0.8.4
User avatar
skinwalker
 
Posts: 185
Joined: Sun Oct 20, 2013 1:50 pm

Re: RUBE Loader Project

Postby jarmund » Wed Jul 23, 2014 5:31 pm

I'm having some issues with getting started with this.

I've recreated the references to AndeEngine and AndeEngineBox2DExtension, but it is still having some problem.

At first, there were a lot of problems with the Color import (I believe it was org.andengine.util.adt.color.Color, or something similar). That one was resolved by changing it to org.andengine.util.color.Color.

A few problems remain, though:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. The method getWidth() is undefined for the type IEntity EntityFactory.java      /AndEngineRubeLoaderExtension/src/org/andengine/extension/rubeloader/factory    line 160       
  2. The constructor PhysicsConnector(IEntity, Body) is undefined    EntityFactory.java      /AndEngineRubeLoaderExtension/src/org/andengine/extension/rubeloader/factory    line 241         
  3. The method getHeight() is undefined for the type IEntity        EntityFactory.java      /AndEngineRubeLoaderExtension/src/org/andengine/extension/rubeloader/factory    line 161       
  4. The method setAnchorCenter(float, float) is undefined for the type IEntity      EntityFactory.java      /AndEngineRubeLoaderExtension/src/org/andengine/extension/rubeloader/factory    line 164       
  5.  
Parsed in 0.012 seconds, using GeSHi 1.0.8.4


I am not sure how to solve those as easily as the Color issue. Any pointers?
jarmund
 
Posts: 8
Joined: Thu Jul 17, 2014 1:17 am

Re: RUBE Loader Project

Postby davix10 » Fri Sep 12, 2014 9:53 am

jarmund wrote:I'm having some issues with getting started with this.

I've recreated the references to AndeEngine and AndeEngineBox2DExtension, but it is still having some problem.

At first, there were a lot of problems with the Color import (I believe it was org.andengine.util.adt.color.Color, or something similar). That one was resolved by changing it to org.andengine.util.color.Color.

A few problems remain, though:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. The method getWidth() is undefined for the type IEntity EntityFactory.java      /AndEngineRubeLoaderExtension/src/org/andengine/extension/rubeloader/factory    line 160       
  2. The constructor PhysicsConnector(IEntity, Body) is undefined    EntityFactory.java      /AndEngineRubeLoaderExtension/src/org/andengine/extension/rubeloader/factory    line 241         
  3. The method getHeight() is undefined for the type IEntity        EntityFactory.java      /AndEngineRubeLoaderExtension/src/org/andengine/extension/rubeloader/factory    line 161       
  4. The method setAnchorCenter(float, float) is undefined for the type IEntity      EntityFactory.java      /AndEngineRubeLoaderExtension/src/org/andengine/extension/rubeloader/factory    line 164       
  5.  
Parsed in 0.012 seconds, using GeSHi 1.0.8.4


I am not sure how to solve those as easily as the Color issue. Any pointers?


Did you solved your problem?
davix10
 
Posts: 6
Joined: Wed Sep 10, 2014 11:15 pm

Re: RUBE Loader Project

Postby nazgee » Mon Oct 13, 2014 11:57 am

99% of your issues is using the incorrect branches. read my description carefully: features/rube-loader-project-t10860.html#p50038
Dirt Rider Mayhem is PUBLISHED now!
Image
User avatar
nazgee
 
Posts: 527
Joined: Fri Oct 21, 2011 10:31 pm
Location: Poland, Wrocław

Re: RUBE Loader Project

Postby tanrobles » Mon Jan 26, 2015 10:46 pm

hello everyone

Nazgee, I like your work!

But, I have something question about that.

I created a small scenary in a software and I generated a file *.json with the info about that. Using the Nazgee´s loader I load the esenary in my game(everithing is perfect until this point) but, who can I work with diferentes screen sizes?

Is a problem because we are not speak about a 2 sprites, without one scenary complete.


Thank you very much! :geek:
tanrobles
 
Posts: 4
Joined: Wed Feb 26, 2014 5:34 am

Previous

Return to Features

Who is online

Users browsing this forum: No registered users and 5 guests