Regarding cookbook, and in need of help.

jwoo13jwoo13 Member Posts: 8
edited December 2011 in Working with GS (Mac)
The cookbook seems dead. On the contrary the forums seem at least semi-active?
Would it be okay to post my problems here instead?
---
If so, I need some help with a simple platformer I am making. There are two main problems.
1. I want to make a bar on top, that simply indicates the player's health, status, etc. How do I make this follow the camera (the camera is controlled by the player)? I tried constraining its x and y value to the x and y value of the camera's origin, but this is glitchy. (It follows in "spurts". The camera moves, then the bar moves, then the camera, then the bar. It isn't smooth nor constant)

2. Can I make the destruction of actors more specific? My code basically says that if the player attacks the enemy, the enemy is destroyed. However, this causes all actors of the enemy's type to be destroyed, not just the enemy I attacked. For example, it would be like if in mario all the goombas die when mario jumps on one of them. How do I make it so only the enemy the player specifically attacks dies?

Thanks ahead of time, any help is greatly appreciated!
-----
If I am not supposed to post this hear I am sorry, I am still new to here.
It would be cool if some one could me a little guidance :]

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    @jwoo13

    1. you need to create a HUD layer in the scene...
    this layer must be placed at the top of the list of layers

    Wikipedia » HUDjust about everything you need to know about HUDs

    Weswog's Scrolling HUD Video

    2. yes …
    don't know why this is behaving like this for you …
    can't see what Actor your conditions/behaviors are on.

    do know overlap/collide should be on the enemyActor
    EX:
    Rule: when
    {condition} Actor receives event: overlaps/collides with actor of the type: Player
    --- Destroy

    this is the best place to post your questions!

    MH
  • jwoo13jwoo13 Member Posts: 8
    Thanks a ton bro, this helps a lot!
Sign In or Register to comment.