Spawned actor's x,y coordinates anomaly

gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
edited November -1 in Working with GS (Mac)
When I spawn an actor, and in the actor that spawns it, put the y position to be self.Position.y, then surely the spawned actor should appear in the centre of the spawning actor? Id doesn't for some reason, but appears about 20 to 30 pxls higher. Am I missing something obvious here does anyone know please?

""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    Is it "relative to actor" and not scene when spawning?

    Have you got the 2 actors colliding with each other (most obvious thing i can think of) as this would cause them to jump apart.

    Darren.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi Darren, I have the spawned actor relative to the spawning actor, and there's no collision. Strange; I'm wondering if this is a bug that's crept in in .9? I'd appreciate it if you could do a small test if you've time, and see if you get the same results, thanks.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • UtopianGamesUtopianGames Member Posts: 5,692
    Just reread the 1st post...spawn the actor at 0 0 relative to actor (not self.position.y) that will spawn it directly on the x y of the other actor.

    Darren.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Silly me, of course, thanks again, Darren.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.