Updated Demo

zombotszombots Member Posts: 186
edited November -1 in Announce Your Game!
thanks to Codemonkey its alot nicer to play now
check it out

http://gamesalad.com/game/play/9030

any more suggestions?

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Hey there,

    This may only be relevant due to it being on a web page at the moment, but I'd chuck some constraints in there on the X axis for your character.

    At the moment, if you move the player too fast, he can disappear off the screen.

    To stop this, on your player actor, put in a rule that states:

    If actor's X position is less than or equal to 30, make actor X's position 30
    If actor's X position is greater than, or equal to 450, make actor X's position 450

    (the numbers are just rough guestimates based on the size of the actor in the game - fiddle with them to get them bang on)

    Only other thing off the top of my head is that it needs some sound, but I'm sure you already knew that!

    Good stuff!

    QS :)

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Orrrrrrrr. In the constrain behavior you can make the value instead of just mouse.Position.X

    to min(max(mouse.Position.X,30),450)

    Less is more.
  • quantumsheepquantumsheep Member Posts: 8,188
    More or less.

    ;)

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • zombotszombots Member Posts: 186
    awesome, ill try that. and yea i kno it needs sound, just havnt got to that yet.
    thanks for the feedback
  • zombotszombots Member Posts: 186
    hey i cant get either of them to work for me
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    max(30,min( game.Mouse.Position.X ,450))

    It specifically looks like that with the game.Mouse.Position.X being that attribute that you had when it was working before. Remember to have the right amount of open and closed parentheses.
  • zombotszombots Member Posts: 186
    awesome that made it works, thanks heaps
  • zombotszombots Member Posts: 186
  • quantumsheepquantumsheep Member Posts: 8,188
    I liked the crumbs!

    But it made me hungry! :(

    QS

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

Sign In or Register to comment.