1 World, 1ui, Multiple Event Observers

Discussion in 'How Can I...?' started by wwwjohntech, Dec 7, 2016.

  1. wwwjohntech

    wwwjohntech Boxer

    Joined:
    Dec 7, 2016
    Messages:
    15
    Likes Received:
    2
    Hi everyone,

    First of all, a little bit about me, I'm John from Canada and I'm working on Buildbox since few days, as a java developer it seems pretty easy and if some people need my help for some features I'll be glad to help.

    Just one thing I can't do and it's annoying me, I have multiple worlds, 1 world is connected to 1 UI and in my UI I have multiple events observers.

    - Event Observer 1: if user reaches 100 coins, I pause the world, display a UI with congratulations and mission 2 and the user can play again for mission 2.

    - Event Observer 2: same thing but for 200 coins, the issue is when I reach again 100 I have my first message for the mission 1 congratulations because I reach 100 before 200.

    - Etc.

    So I wanted to put more Game UI but 1 UI can be connected to 1 world and I need the best coins/points score for the current world and if I have multiple world for my main world 1 I can't do that or maybe I'm missing it.

    Is it possible to jump event observer if already reached or maybe is it possible to have multiple worlds with the same name (so the same coins/points score) or another solution to do what I'm trying to do?

    Thank you again, keep doing the great work Buildbox Team.

    John
     
  2. wesam_badr

    wesam_badr Miniboss Boxer

    Joined:
    Oct 10, 2015
    Messages:
    1,065
    Likes Received:
    479
    Don't use event observer for now it's has a lot of bugs wait the next update
     
  3. wwwjohntech

    wwwjohntech Boxer

    Joined:
    Dec 7, 2016
    Messages:
    15
    Likes Received:
    2
    Hey,

    Thank for replying. When is the next update?

    Otherwise do you have any temporary solution for my case, I'm about to release the app, just missing that.

    Thank you
     
  4. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
    I never see until Event Observer bugs and i use them in 3 games, with session coins,session points,redirect,last scene,game over....
    please share with us what bugs do you have.

    Hy John,
    When character reach 100 coins send him to a „Congrats UI„ but from there send him to next scene from the same world
    https://mega.nz/#!41dFTIoB i think here a BB example
     
    Last edited: Dec 7, 2016
  5. wwwjohntech

    wwwjohntech Boxer

    Joined:
    Dec 7, 2016
    Messages:
    15
    Likes Received:
    2
    I do not have a bug with event observer, the thing I'm facing is that in the same UI I have two observers for the same action but with a different value.

    If user reaches 100 coins I redirect to one UI and if user reaches 200 coins to another UI.

    The thing is that the game UI is the same and even if I've completed the first mission with 100 coins when I play it does not reach 200 coins because it stopped before with my 100 coins observer.

    So this is my problem, how is it possible to that maybe with multiple UI but with the same world as the mission is based on the current session for the world.

    Thanks

    Screen Shot 2016-12-07 at 3.34.35 PM.png Screen Shot 2016-12-07 at 3.37.52 PM.png Screen Shot 2016-12-07 at 3.38.04 PM.png
     
  6. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
    You set a `Reach` so when he reach the goal he take you there. (maybe will be some changes in this event.buildbox.com
    A way to do it i think :
    Same World - dublicate it
    in first world with event obs Coins-100, when he reach 100 C go to `Congrats UI` Add a button to go to next `level` and you send him to World 2 but with Event Obs set for 200 Coins.
    I attach a file before, did you see it ?
     
    Christoph likes this.
  7. wwwjohntech

    wwwjohntech Boxer

    Joined:
    Dec 7, 2016
    Messages:
    15
    Likes Received:
    2
    No file.

    I've tried what you're saying but if new world new score for this world and if the user closes the app what I need is to retrieve where he was by the best coins/points for a world. But if I use a new world it will have its own score/points/coins and won't redirect to this world when the user relaunch the app or go on my home page.

    You see what I mean?
     
    blad300 likes this.
  8. wwwjohntech

    wwwjohntech Boxer

    Joined:
    Dec 7, 2016
    Messages:
    15
    Likes Received:
    2
    Oh got the file but I need a key for it
     
  9. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
  10. wwwjohntech

    wwwjohntech Boxer

    Joined:
    Dec 7, 2016
    Messages:
    15
    Likes Received:
    2
    Got it thank you.

    The thing is I have many missions on the same world, on your example we go immediately on world 2 if won.

    Me, if you win mission 1 (50 coins), you go on the same world but for a new mission (example 100 coins).

    So I need the same world but multiple event observer. So I play World 1 UI for example, I reach 50 coins, I'll put my congrats message and mission 2. After that I redirect to the same game UI which has 2, 3, 4 events observers.

    That's why I'm trying to figure out a new way.
     
  11. wwwjohntech

    wwwjohntech Boxer

    Joined:
    Dec 7, 2016
    Messages:
    15
    Likes Received:
    2
    I'll better explain my issue.

    When the user comes back on the game, I need to check where was before (mission) so if I have multiple worlds which is the easiest way I can't check each world's points/coins so I can't redirect to the UI I want.

    That's why I put multiple events observers on my main game UI.

    So if it's possible to check multiple worlds points/coins I would like to know why because I can't check total or best score I have multiple worlds with multiple designs.

    Let me know if I'm not clear
     
  12. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
    Thats the way i show it to you in BBfile .
    you must add level selector . leveler locker .
    i will create tomorow another file with this .
    play little bit Flipman Adventure from my sigture to understood
     
  13. wwwjohntech

    wwwjohntech Boxer

    Joined:
    Dec 7, 2016
    Messages:
    15
    Likes Received:
    2
    If you have Skype we could do it by visio and share screen.

    Add me: wwwjohnrobin
     
  14. wwwjohntech

    wwwjohntech Boxer

    Joined:
    Dec 7, 2016
    Messages:
    15
    Likes Received:
    2
    Hi everyone,

    One up for this thread if someone has any idea?

    John
     
  15. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
    Did you play Flipman ?

    In my game, world 1 the user must collect 200 coins to finish the 1st level.
    Then another 200 for second level.
    ...so when he come back he will choose to play from 2nd level...

    How i understood..tell me if im right.
    You want to increase the world level by collecting more coins .
    But you dont want a level selector.
    You want , if the user collect 50 coins the game level go up , to collect 100 coins .
    And when the user come back, the game remember how many coins collected before.
    But you dont want a level selector
     
  16. wwwjohntech

    wwwjohntech Boxer

    Joined:
    Dec 7, 2016
    Messages:
    15
    Likes Received:
    2
    You are 100% right. That's what I want, I would like to avoid a mission selector with unlock buttons, if I have to do it, I'll do it, but if I can avoid it, it's better
     
  17. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    I sent this to the OP via support, Posting hear so maybe we can solve the problem faster.

    This seems to do exactly what is wanted, what am I missing?
    https://buildbox.box.com/s/kfhn6gspnz7rxxf3x3s3o0iw109z6dcv

    1) Play game, grab the coin in world 1.
    2) You are transported to world 2 (via event observer).
    3) grab coin (this level requires 2 coins to pass) then die
    4) start game again... you start from world 2 automatically.
    5) grab another coin... transport to world 3 (via event observer)
    6) die and restart, automatically you start in world 3
     
  18. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
    I create 3 BB files :
    1 - with this settings but with `Tap to continue` (Maybe you want to add ads there :D )
    https://mega.nz/#!80NzACBa!fEybuU1gaASojPZL69-w7CE9lYX-kJj7gIzpq82aACE
    2 - with this settings but without `Tap to Continue`
    https://mega.nz/#!898xFTbB!JQckyfMVYvNR8oLidT3nHUOY9rzd0ewW8QUDmpepOhU
    3 - With this settings but in the same world (With or without tap to continue)
    https://mega.nz/#!p18jxJRK!0pfZsjlNZqWOWwymJccs_nb_SJd4aipwscgQRMAJdDE
    ----Now the problem is when the user finish the game--- he must `reset the settings` to replay it :(
    All 3 have the same problem :(
     
  19. wwwjohntech

    wwwjohntech Boxer

    Joined:
    Dec 7, 2016
    Messages:
    15
    Likes Received:
    2
    I've worked on many scenarios and the best one without any issue is:

    Start, Home, Worlds selection, when world is selected, world's character (if different for each world), when character is selected, missions selection with locked buttons, world 1 mission 1 message, go to play (World UI 1), event observer 1 reached, go to world 1 mission 2 message, go to play (World UI 2), event observer etc etc etc.

    Works fine and finally not too much steps.
     

Share This Page