Interested In Power-up

Discussion in 'Buildbox 3.0' started by mmicoe, Mar 23, 2020.

  1. mmicoe

    mmicoe Avid Boxer

    Joined:
    Dec 20, 2016
    Messages:
    148
    Likes Received:
    41
    Hi all,
    today I got it this Hanomax Games test project:



    But I tested the project and I found an issue and the project cannot be used!

    Bug in code: if player take the gun while he is running, the movement of the character does not stop and always moves to the right. I tested a lot of time and the bug is is always the same!
    Issue: Hit the box and press button right while character take the gun (Power-Up).


    This is an open project and it can be downloaded!

    Can anyone solve it?
    Thank you because this is an interesting project!
    All the best!
    Mauro
     
  2. mmicoe

    mmicoe Avid Boxer

    Joined:
    Dec 20, 2016
    Messages:
    148
    Likes Received:
    41
    Hi all,
    ok, taking advantage of the time confined at home by the covid-19 the issues are solved!
    This is the old map:
    Using 2 platformer scripts = Its wrong because it creates two entities, and it is more difficult to control it = a lot of issues.
    Using 2 Collision ground causes more issues to control.
    OLD.png

    Now, using this new map, and modifying the Script code and using 1 platformer script (updating Main-Entity), works fine:
    Using Power-UP if character touch an object, and return Power-Off if character touch another!!!!!
    Updates:
    1. By default character has not got Power.
    1. Receive 1: Get Power On (Character can Attack)
    2. Receive 2: Lost Power: Power Off
    3. Script: Control Animations depending of status in Main-Entity.

    4. Only one Collision-Ground, controlled in Main-Entity (you control only 1 collision ground in the same entity)
    5. Control Animations in Main-Entity

    I1,J1R1 = Animation by default. Power off
    I2,J2,R2 = Animation Power On.

    New.png

    All the best,
    Mauro
     
    Last edited: Mar 25, 2020
    brobazele likes this.

Share This Page