Forums

OverviewV-Play 1 Support › ParallaxScrollingBackground black background when image width is reached

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6437

    rrma

    Hello,

    I’m developing a jum’n’run game with a ParralaxScrollingBackground. This background is working fine, as long as the end of the background image is not reached! For example the player runs to the right -> the background moves to the left, but then the player goes back to the left side -> the background moves to the right side, but if the background width is reached, the rest of the background which is not in the left picture is black -> the most right background is black, it’s the same when you reach the beginning of the picture (on the left there is a black background till the start of the background-pic).

     

    I already tried to add a second image or mirror it. Nothing helped. Additionally there is always a black line between the end and start of the new background.

     

    Could you please help me?

    #6497

    Alex
    V-Play Team

    Hi,

    the ParallaxScrollingBackground item is designed for endless scroller games, it doesn’t support turning the direction at runtime. However you can take the source code of the item as a base to create your own item with the extended functionality.

    The source code of the item is here: <Path to the V-PlaySDK>\Desktop\V-PlaySDK\qml\VPlay\sprites\ParallaxScrollingBackground.qml

    Regarding the thin black line between the images, we are investigating this issue but haven’t found the cause yet, we will let you know as soon as we could fix it!

    Cheers,
    Alex

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support