GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Updated Demo

zombotszombots Posts: 186Member
edited 2:30PM 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 Posts: 8,188Member
    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: http://www.quantum-sheep.com

  • CodeMonkeyCodeMonkey Posts: 1,803Head Chef, Member, PRO
    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 Posts: 8,188Member
    More or less.

    ;)

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: http://www.quantum-sheep.com

  • zombotszombots Posts: 186Member
    awesome, ill try that. and yea i kno it needs sound, just havnt got to that yet.
    thanks for the feedback
  • zombotszombots Posts: 186Member
    hey i cant get either of them to work for me
  • CodeMonkeyCodeMonkey Posts: 1,803Head Chef, Member, PRO
    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 Posts: 186Member
    awesome that made it works, thanks heaps
  • zombotszombots Posts: 186Member
  • quantumsheepquantumsheep Posts: 8,188Member
    I liked the crumbs!

    But it made me hungry! :(

    QS

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: http://www.quantum-sheep.com

This discussion has been closed.