help with enemy movement on a platformer???

2»

Comments

  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078
    @Socks these are the rules below.

    rules for non random, like they should all move at the same time (doesnt work because the actor doesnt start at its starting x position when placed on scene) (same with the random one)
    image

    image for random
    image

    image of my attributes
    image

  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078
    bump, still wondering how/why this isnt working :(
  • SocksSocks London, UK.Member Posts: 12,822
    edited November 2013
    @Codemonster

    Not at my computer so can't try this myself, but try this . . . . .

    Change MyUniqueXPosition to a real attribute rather than an integer (or constrain it to floor(self.position.x) rather than simply self.position.x).
  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078
    alright thanks @Socks i will try that
  • SocksSocks London, UK.Member Posts: 12,822
    alright thanks @Socks i will try that
    Like I say I'm not at my computer to test this (nor do I use the PC version of GS) but maybe trying to store - for example - 164.436 in an integer might return a zero rather than round up or round down ?


Sign In or Register to comment.