"Slide self BY" iOS oddity [1.3.5]

kidbeyond

  • Posts: 89
Quote
I'm noticing an actor appearing in top left corner for a split second while it's tweening to a position. I'm setting up a menu logo & buttons on a one-scene game. So when the player hits play I want to slide the logo and buttons off screen.

Just setting up the logo and just before it slides to a position x=static(160) y=-200 it flashes in the top left corner before doing the slide up the screen as it should.

I'm having the exact same problem! Been trying to fix it for hours. I'm glad it's not just me.

Here's what I can tell you:

- It only happens on the device, not on the simulator.

- It only started happening when I moved up to 60FPS (from 30FPS).*

- It seems to happen when a bunch of actors are being Slide-to'd at the same time. (over 1 sec, Normal In/Out)*

- - - - -

I'm using an iPhone 4S, so I don't think it's device-related.

I'll try changing it to a scene behavior, as per wohoo's advice above -- but that's a bit of a pain.

- - - - -

* By the way, while trying to fix this bug, I noticed a few things:

1. Setting it at, say, 55, 50, or 45FPS just brings things automatically down to 30FPS. Is this intentional?

2. Trying a Slide-to time of under 1 second seems to produce no slide. Is this intentional?


Jon

  • *
  • Posts: 17524
Our base engine may be doing that to the framerate because it "believes" that certain multiples deliver a smoother/more appropropriate visual.

To be frank though, I don't see a major purpose in intentionally lowering your framerate to begin with, but I've encountered some who insist on setting it to 30 and have left it in.

Basseman

  • Posts: 207
Hmm, strange.. Tested both attached to actor and to scene but BOTH makes a move even in the Y-axis thus only should on x-axis..
And even stranger is that when swiping right it move further than when swiping left although set to
-300 or 300 pixels..



Anyone have a solution for this ??

Cheers !!

« Last Edit: January 04, 2012, 08:09:40 am by Basseman »

kidbeyond

  • Posts: 89
To be frank though, I don't see a major purpose in intentionally lowering your framerate to begin with, but I've encountered some who insist on setting it to 30 and have left it in.

Yup. My only purpose in trying out 55FPS, etc., was to get rid of the "Actor briefly flickers in at top left when sliding" bug, described above. As soon as that bug is gone, I'll go happily back to 60. :)

By the way, I'm also getting the "Slides Y when I only said Slide X" bug too.


Rob

  • *
  • Posts: 1268
@Basseman, can you duplicate this in flash?
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

Basseman

  • Posts: 207
Hmm, dunno what you mean by duplicate in flash since i use the swipe Ios block..
But when i added or left or right key it moves just as it should..

Cheers !!

@Basseman, can you duplicate this in flash?

Rob

  • *
  • Posts: 1268
Sorry I did not make it clear. I mean using these slide by blocks in a flash game to make sure they are not broken.
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

Basseman

  • Posts: 207
Hi again, as stated above i also included the posibility to use arrowkey left and right to control the slide and that works perfect.. So i guess the problem is the iOS swipe block.

Cheers !!


Sorry I did not make it clear. I mean using these slide by blocks in a flash game to make sure they are not broken.

Rob

  • *
  • Posts: 1268
Great. We'll let Jon take care of the fix coming up.
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

Jon

  • *
  • Posts: 17524
Investigating. So there are a few issues here, something wrong with the tween by for actor behaviors and something wrong with the swiping (likely an orientation issue)

Jon

  • *
  • Posts: 17524
I've fixed slide by - it had faulty logic.

I'm not seeing any issues with swipe - it seems like the issue all along was just in the slide by. Pro users will get an updated preview with this fix.

[1.3.5]