dsminor's Recent Forum Activity

  • Thats a whole system you need to make here.

    Its totaly possible and not to hard too do, but it will need some work.

    You should start with making the points.

    You will need to be able to identify them so make an instance variable and give everyone a specific number oder string.

    After that make the player and give him a variable to store his actual position, so you can generate options, sounds or messages depending on the players position.

    After that you need a system to give the player moving options depending on his actual position.

    After that you need to actualy move the player to a new position.

    Thats the core if that works fine you can start adding content like sounds or messages.

    The messages should be randomly generated depending on situations and position?

    So thats a whole new chapter then.

  • The variable is just the number of the actual lane.

    1 for left lane

    2 for middle lane

    3 for right lane

    You dont need the exact coordinates unless the car is able to change its position inside its lane.

    If the car is fixed on its lane it should allways be the same distance to the next lane.

    I think what carbincopy wants is to actualy move the car to the next lane instead just "teleporting" it.

  • I would make a variable called lane.

    left lane =1

    middle lane= 2

    right lane = 3

    on D press

    if lane not = 3

    set position car.x+50

    lane+1

    on A press

    if lane not =1

    set postion car.x-50

    lane-1

  • nice thx

  • Ok then you need to stick to the three blocks and just load the comments into them from an array(database).

    Thats totally possible with some math magic.

  • 90% of gamebreaking bugs are small things like a simple line of code.

  • I thought about a nice system but its a bit complicated.

    But i just got an easier idea.

    Every comment is a block in your script?

    So just count the blocks. Give them a variable called commentNUmber.

    And a global variable TotalComments

    on comment made add+1 to TotalComments and set the instanze commentNUmber to TotalComments.

    then make a new block at (x=360,y=859+(commentNUmber-1)*133)

    so every comment will create a block 133 pixel under the last block

    then if you klick the downarrow just shift all blocks up(-) 133 pixels.

    on uparrow shift them down(+) 133.

    So you can just "scroll" through them. No need for Pages.

    p.S:

    Its getting late my english is getting worse i am sorry

  • Hmm i dont see why the leveling shouldent work but what about the progress bar?

    How does it know what its maximum is?

    Also the maximum isent static, it changes with every level cause the

    formula is 100*Level*2.

    Have you checkt the numbers for level and EXPprogress in the debuger?

  • Hi,

    i really dont understand what your trying to do...so many comments

    What i did now:

    IF > commentCheck = 3*commentPage-2 > Do action

    IF > commentCheck = 3*commentPage-1 > Do action, Do Action

    IF > commentCheck = 3*commentPage > Do action, Do Action, Do Action

    your changing the formula here not the variable.

    The formula should stay the same you just need to change the commentPage variable.

    f(x)=3x-2 is a linear function you put a x in and get a f(x)=y out.

    Thats it.

    Never change the parameters (3 and -2) or you will get another function or even a cluster of function if the parameter is a variable itself.

    However.

    So maybe you should do something like that:

    on setComments:

    set commentCheck to 3*commentPage-2

    ...........if commentCheck=1--->do something

    ...........if commentCheck=4--->do something

    ...........and so on

    But as i said i dont get what your trying to do with this.

    It sounds like you just want to switch to a new comment page every 3 comments?

  • Hi,

    you need a variable for your n.

    So its 3*"variablename"-2

    Then everytime the event runs add+1 to this variable.

    (in fact thats exacly what you do in your mind with the sequences 3n-2 you add +1 to n on every run.)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Yes thats right i would put it in event 118 though, so the system dont need to loop all enemys ~60 times a second.

  • You could just post the .capx iam pretty sure its just a bug.

dsminor's avatar

dsminor

Member since 25 Jul, 2015

None one is following dsminor yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies