Get A Point When I Avoid A Spawning Enemy?

Discussion in 'How Can I...?' started by Jaky1, Dec 9, 2016.

  1. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    Consider this. My player is to the right and from left enemy bullets or something are spawning , I want to get a point when I avoid each one of the upcoming object..?

    How can I do this? I added action to a spawning object, but that is weird to, it keeps spawning the action on uneaqual intervals and also fills up 2 or 3 actions if I take time for a slow upcoming object.


    So it is a really big problem..

    Anybody help is appreciated. Thanks!

    @jerry @Nihat @blad300 @playsgames6666
     
  2. telerebor

    telerebor Avid Boxer

    Joined:
    Jan 12, 2016
    Messages:
    279
    Likes Received:
    145
    How about you add an action to the death animation of the bullet. So when you avoid the bullet it dies off screen or on screen and rewards you with the points
     
  3. meremy

    meremy Avid Boxer

    Joined:
    Aug 26, 2016
    Messages:
    134
    Likes Received:
    66
    Does it have to be spawned bullets ? If the player is advancing forward you can have them as wake up objects with velocity and the action will be easier to place
     
  4. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    @meremy @telerebor.. They are not bullets just some enemies. And my character just moves on same axis not advancing.. As I said tried with spawning action but is irregular..

    Also tried to attach the action to the enemies.. But since they are spawning the action comes 1 time..
     
  5. meremy

    meremy Avid Boxer

    Joined:
    Aug 26, 2016
    Messages:
    134
    Likes Received:
    66
    upload_2016-12-9_17-53-22.png
    If it's not a spawned enemy you can have him with a 0 opacity action like that, and every time you pass it by you will get the coin.
     
  6. sysads

    sysads Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    885
    Likes Received:
    353
    Hmm this might be tricky because the action feature from my understanding so far only affects the character so when character passes throught it, it scores but when non character object passes throught, it does nothing.

    Anyone correct me if I am wrong....
     
  7. meremy

    meremy Avid Boxer

    Joined:
    Aug 26, 2016
    Messages:
    134
    Likes Received:
    66
    You are correct :)
     
  8. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    @meremy Thanks..! It is a spawned enemy and is continuously spawning and coming towards the character and I have to avoid it, and when I do I get a Score 1 point..??

    @sysads you are corect. Have any idea how to achieve this?

    Thanks!
     
  9. meremy

    meremy Avid Boxer

    Joined:
    Aug 26, 2016
    Messages:
    134
    Likes Received:
    66
    Yes. The action is the purple line and avoiding the object you take it so your score increases. I don't think you can do it by spawning objects. You have to set the objects manually with wake up or the character will have to advance into them. This works so much better with scenes. Why do you keep wanting it to be a spawner ?
     
  10. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    Because I want a unique style of gameplay not moving into scenes but one scene and after time to time it gets harder and harder by timewrap increase. I guess there is not way huh?
     
  11. meremy

    meremy Avid Boxer

    Joined:
    Aug 26, 2016
    Messages:
    134
    Likes Received:
    66
    Nothing comes to mind. I've also tried several game ideas where the character doesn't move and the environment comes to him but it's very tricky and it's hard to scale the game
     
    Jaky1 likes this.
  12. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    @meremy You are right, I guess this is another Drawback of Buildbox :(. Can't even do a unique game
     
  13. meremy

    meremy Avid Boxer

    Joined:
    Aug 26, 2016
    Messages:
    134
    Likes Received:
    66
    Of course you can :D you are just limited
     
    Jaky1 likes this.
  14. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    Its easy to do.
    same principle as earning a point when shooting an enemy.
    As @telerebor said, have your bullets or object collide and destry with wall behind your character and place the points action in the death animation. so when your bullet or object is destroyed your character will collect, the point.
     
    Jaky1 likes this.
  15. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
  16. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    Not may work, will work.
    Just remember to set the action opacity in death animation to zero. and make it really big so it takes up the whole screen to ensure that the character hits it.
     
    meremy and Jaky1 like this.
  17. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142

Share This Page