Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mightiest_hero

Pages: 1 [2] 3
21
try isTouching(Direction)

22
help / Re: Witch one is better
« on: Sun, Jul 31, 2011 »
okay thank you guys for the input

23
help / Re: Witch one is better
« on: Sun, Jul 31, 2011 »
do you have any reason why? witch one better in performance when there are an event to change object type? thanks in advance

24
help / Witch one is better
« on: Sat, Jul 30, 2011 »
I want to make object that has different sprite, width, and height.
Witch is better make 1 class that load graphic when change type or make different class?

25
Hey photon
i have suggestion, can you make dialog be a question and answer (player must pick) too when needed.

26
help / Re: FlxPath, drawing the line?
« on: Tue, Jul 19, 2011 »
Strange.
You can see the path line in demo.
Maybe i can check you code if you post your code
Well it me who create that demo.
mightiest_hero is my username in this forum

28
help / Re: mouse click coordinates and FlxCamera
« on: Tue, Jul 12, 2011 »
in my case FlxG.mouse.x and FlxG.mouse.y works well without any change even for scrolling
what version do you use?

29
help / Re: checking what animation is playing.
« on: Thu, Jul 7, 2011 »
do you add the animation?
if you do then could you post the entire player code? so i can see what wrong with your code

30
help / Re: checking what animation is playing.
« on: Thu, Jul 7, 2011 »
Hi
try checking _curAnim.name in FlxSprite

31
Hi
if you want to overlap groups use FlxG.overlap
sorry in 2.43 FlxU.overlap

32
help / Re: Collision trouble after switch to 2.5
« on: Mon, Jun 27, 2011 »
you're welcome

33
help / Re: Collision trouble after switch to 2.5
« on: Mon, Jun 27, 2011 »
Hi
try to move function gamestate to function create

34
releases / Re: v2.50 beta thread!
« on: Thu, Jun 2, 2011 »
Is hard to use the FlxGroup.sort method in a group with groups. Even if you overload the sortHandler method so the group does not generates an error because does not have the "y" property, you can't be sure that the sprites sort correctly, because they are sorted inside the groups.

You can trick that. When add a group to a group don't use add(group) but looping add(group.member)

35
help / Re: Raytrace?
« on: Mon, May 30, 2011 »
maybe. in find path if you set ray simplify it will call that function but by default ray simplify set to false

36
help / Re: Raytrace?
« on: Mon, May 30, 2011 »
i mean it used in raySimplifyPath function in FlxTileMap

you can use it for ray to trace ray in game like survival horror
function ray(Start:FlxPoint, End:FlxPoint, Result:FlxPoint=null, Resolution:Number=1)
start is player position
end is position you want to reach
use result if ray return false
use end if ray return true

37
help / Re: Raytrace?
« on: Mon, May 30, 2011 »
it used in path finding check it out

38
help / Re: Camera & Mouse Scrolling
« on: Sun, May 29, 2011 »
try camera.scroll.x

39
help / Re: Problem with shooting bullets origin
« on: Sun, May 29, 2011 »
I've had a great deal of trouble getting bullets to show up where they're supposed to in Flash, but in the end I just had to adjust for scroll, like you said. Usually you just have to add the camera/scroll position to the xy. Pre-2.5 it was x+FlxG.scroll.x (and same for y). I think FlxG.scroll was renamed to FlxG.camera in 2.5, or something. Can someone please confirm?

FlxG.camera.scroll and it was x+FlxG.scroll.x but now u better use x-FlxG.camera.scroll.x

40
so many change from 2.43 to 2.5
added path finding feature
added replay function
added multi camera system
more debugging tools
change name function render to draw
and else

Pages: 1 [2] 3