Problem scrolling using Wrap Y

SAMmanSAMman Member Posts: 228
edited November -1 in Working with GS (Mac)
Hey Guys, How's it going? I'm fine except this scrolling problem I am having. I have 2 actors. Actor constrains Actor 2. Actor1 is located at the bottom left corner and it constrains Actor2 to the top right corner. I have it set up so that when touch is pressed the Actors are supposed to scroll. I used wrapY but that doesn't seem to work quite right. I want to set it up so that my Hero Actor can jump between platforms on either side of the screen, jumping back and forth. I checked the examples in GS and templates and the forum and couldn't figure out exactly how to do it without messing up timing and things like that. The way I tried it with WrapY worked except the Actor2 that is constrained flickers when it gets to the bottom of the screen and Actor1 is above it. Any suggestions would be most welcome at this point. Thanks!
SM

Comments

  • old_kipperold_kipper Member Posts: 1,420
    I a not sure by your description exactly the problem but if you wrap an actor through the Y then its position/Y coordinate jumps from a high value to a low one or the reverse. If you have another actor constrained to it with an offset it can do some weird things as it will be trying to add its offset to a value that doesn't exist as the wrap takes it back to zero at a value below the total sum. You may have to have a switch based constraint that uses < and >, so it jumps when the rollover happens.
  • SAMmanSAMman Member Posts: 228
    I will try that. Thanks!
Sign In or Register to comment.