Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualDeft

Posted 31 August 2012 - 11:50 AM

URGENT: - Finish the inventory / store system so I can implement the inventory array in the GUI (Please help of EDIT 1 above)
- Make the others hitTests for the rest of the in-game objects. Easy.
- Make the hero look left when user hits left key. Tricky, I was some time doing this and couldn't figure out, tomorrow I will give it another try (later, actually)
- Make the hero's animation (I have the animation in the MC, I just need to play() it the hero moves)
URGENT: -Finish the game design, if player ends game, how to call again to call the MissionSelection function (I will work on what you told me Deft about it)

I don't know, was your problem with array push released or not, but anyway: I'd said a few posts later about that thing that Flash engine transfer variables (non-scalar types, such as custom objects) as links, and not as values.
This is means that when you call addChild and use image1, you put some object on the scene. When you trying to add second object on the scene by using same image1 sprite, actually you just adding the same object that already on the game stage. The goal is create second instance of your sprite and that's all.

Turn left/right can be done by reversing source hero image by x axis Posted Image In ActionScript it can be done by replacing hero image each time key pressed.

Yeap, playing hero animation is very simple.

#1Deft

Posted 31 August 2012 - 11:49 AM

URGENT: - Finish the inventory / store system so I can implement the inventory array in the GUI (Please help of EDIT 1 above)
- Make the others hitTests for the rest of the in-game objects. Easy.
- Make the hero look left when user hits left key. Tricky, I was some time doing this and couldn't figure out, tomorrow I will give it another try (later, actually)
- Make the hero's animation (I have the animation in the MC, I just need to play() it the hero moves)
URGENT: -Finish the game design, if player ends game, how to call again to call the MissionSelection function (I will work on what you told me Deft about it)

I don't know, was your problem with array push released or not, but anyway: I'd said a few posts later about that thing that Flash engine transfer variables (non-scalar types, such as custom objects) as links, and not as values.
This is means that when you call addChild and use image1, you put some object on the scene. When you trying to add second object on the scene by using same image1 sprite, actually you just adding the same object that already on the game stage. The goal is create second instance of your sprite and that's all.

Turn left/right can be done by reversing source heero image by x axis :) In ActionScript it can be done by storing replacing hero image each time key pressed.

Yeap, playing hero animation is very simple.

PARTNERS