Platform position change on screen scroll?

GlomGlom Member Posts: 59
edited December 2011 in Working with GS (Mac)
Hi all, I have a level where I can scroll the screen with my finger. I'm using Tshirtbooths tutorial on that: and I'm also using his tutorial for dragging a platform around while keeping the collision (http://gshelper.com/?p=377). Both of these work great individually but if I move the platform and then screen scroll over, the clickable drag area of the platform changes for some reason. It's got to be some kind of easy fix with a position setting somewhere but I can't quite put my finger on it. Anyone have any idea? Thanks!

P.S. I tried to post this in "Working with gamesalad" but the option wasn't available.

Comments

  • GlomGlom Member Posts: 59
    The man himself! Thanks a ton, I'll try it out now. =)
  • GlomGlom Member Posts: 59
    Quick follow up:

    Using your template for the collision thing with edges, this seems to work sort of. (http://gshelper.com/?p=377)

    In the template for the pink box it's rule says if the drag attribute is true then constrain attribute - self.Motion.Linear Velocity. X to 20*(game.Mouse.PositionX-self.Position.X)

    I've tried adding the + cam x attribute to the inside of the bracket but that doesn't seem to really do anything. Do I need to create a move to like you had in your offset tutorial as well or can this shoe horn in somewhere?

    Thanks!
  • GlomGlom Member Posts: 59
    Hmm, This is still not working for some reason.

    Do you think it has to do with how the camera interprets itself because I'm using the swipe method? In that i mean because you're using your finger to push the opposite way to scroll the scene?

    Do you think i need to set something up with attributes where the scene toggles between swiping to look over when it's not dragging and the camera panning over like in your offset video when the box IS being dragged?
  • GlomGlom Member Posts: 59
    I tried toggling camera control to the platform when drag is true and back again to the drag and cam actors for swiping when drag is false that has the desired effect BUT when the camera is panned over, it still won't select the platform from its current position.
Sign In or Register to comment.