Profile

Member Since
July 27, 2012

Search Members

  

zsbee

5
@

Badges

This user hasn't earned any badges yet.

Posts

Viewing 1 to 5 (5 Total)

Re: Rotation of Bitmap and parents x issue?

Hi!

Thank you for answering!

I tried but it still not working.

I have the following Structure:

Main -> Ball Class extending Sprite -> BallBitmap

In the main i create a "var _ball = new Ball();"
in the Main class i have an EnterFrame Listener which calls _ball.update() and checks the balls x position for the walls. And in _ball.update() i rotate the ball.

If i change the Bitmaps x and y position, everything gets all messed up. Please take a look on my project i attached! Look into the Ball Classes update function. There you have the commented line, which causes every trouble!

(I rotate the Bitmap only, the child of the Ball class. This should not change the Ball's x should it?)

Attachments: Hellohaxeandroid.zip
Posted on July 31, 2012 at 4:57 AM

Rotation of Bitmap and parents x issue?

Hi!
I have my Main class holding my Ball class which has a bitmap in it.

Now my problem is that i'm checking the x position of the ball in the Main Class so i know when it hits the screens bounds.
Everything works just fine until i start rotating the bitmap inside the Ball Class. After this it won't notice the correct x position of the ball instance in the Main class. Its like the bitmap is rotating and the x position of the ball gets altered to the left side of the bitmap! Why? (I'm only rotating the bitmap) The left side should be in negative according to the balls coordinate system shouldnt it?

What am i missing?

Thanks,
Zsombor

Posted on July 30, 2012 at 2:42 PM

Re: Build halted with errors (haxelib.exe).

Okay, i solved it. the haxelib.exe was a folder above... :pistoltoheadsmiley:

Posted on July 30, 2012 at 2:27 PM

Build halted with errors (haxelib.exe).

Hello, I'm new to haxe!
I was trying to create my first small game with this language, and it worked perfectly. till today. today it worked okay too, but now if i press the debug button i get this:

haxelib Repository flash does not exists. Please run haxelib setup again
Build halted with errors (haxelib.exe).


I tried with several yesterday-and-today-working projects and its just not working.
I tried to reinstall Haxe but i got the same error.

After this i tried to use cmd: haxelib isntall flash, and it says: "no Such Project" ?? How do i solve this?
Any thoughts?

Posted on July 30, 2012 at 8:27 AM

Re: SQLlite?

Hi!
I downloaded your example from your blogpost and everything works like a charm if i compile it to Windows, but if i try android all i get is a white screen! (no errors)

What could be the problem?

Posted on July 29, 2012 at 5:20 PM