Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6174797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:48:43+00:00 2026-05-23T23:48:43+00:00

In this game im trying to create, players are going to be able to

  • 0

In this game im trying to create, players are going to be able to go in all directions

I added one single image(1024×768 2d texture) as background, or terrain.

Now, when player moves around I want to display some stuff.

For example, lets say a lamp, when player moves enough, he will see lamp. if he goes back, lamp will disappear because it wont be anymore in screen

If Im unclear, think about mario. when you go further, coin-boxes will appear, if you go back they will disappear. but background will always stay same

I thought if I spawn ALL my sprites at screen, but in positions like 1599, 1422 it will be invisible because screen is only 1024×768, and when player moves, I will set place of that sprite to 1599-1,1422-1 and so. Is it a good way to do this ?

Are there better ways?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T23:48:43+00:00Added an answer on May 23, 2026 at 11:48 pm

    There are two ways you can achieve this result.

    1. Keep player and camera stationary, move everything else.
    2. Keep everything stationary except the player and the camera.

    It sounds like you are trying to implement the first option. This is a fine solution, but it can become complicated quickly as the number of items grows. If you use a tile system, this can become much easier to manage. I recommend you look into using a tile engine of some sort. There are a lot of great tile map editors as well.

    Some resources for using Tiles:

    • Tiled — Nice Map Editor
    • TiledLib — XNA Library for using Tiled Maps
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

All, I am trying to code a Connect4 game. For this, I have created
So there is this game im trying to create, and in the lessons activity
Trying to create the TV game-show Lingo in Python. In the game, players are
I'm making this game where I'm trying to pair people. So I have this
Right, I'm trying to implement this game, http://www.helicoptergame.net/ , but I'm struggling with the
I've been trying to get this Sudoku game working, and I am still failing
This is a problem I hit when trying to implement a game using the
I'm trying to make a slot machine game in Ruby and this is as
I'm trying to solve this flickering problem on the iphone (open gl es game).
I have this game with some variety of textures. Whenever I draw a texture

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.