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 7761519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:09:25+00:00 2026-06-01T14:09:25+00:00

OK, here’s what I’m doing. I’m planning a browser game, but I wanted a

  • 0

OK, here’s what I’m doing. I’m planning a browser game, but I wanted a realtime aspect to it. Basically, the player can roam around a city map and encounter random NPCs and enemies. What I want to know is, is there a way to have a script running constantly, separately from the user’s browsing, that would control things like NPC movement (move them once every second or so, etc.)?

So the user would be playing the game (on a certain area of the map) and there would be something analogous to a game client (like WoW) controlling the NPCs, etc, but controlled on the server side. (This is shared hosting, btw. If I need dedicated or whatever, that’s an option as well.) I really don’t want to have the user’s browser send a request every second asking for the locations of all NPCs all across the entire world. I’m just trying to figure out an alternate way to go about doing this, while still having a realtime aspect to it.

If it’s just not possible, then that’s fine, I have alternate non-realtime plans for gameplay. If anything above is unclear, I will try to elaborate as much as possible.

  • 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-06-01T14:09:26+00:00Added an answer on June 1, 2026 at 2:09 pm

    You probably should google for this:
    ‘php daemon howto’

    Daemons are programs which reside in memory and could be controlled with signals.

    The sad thing is that php is very poor to process asynchronous events, like send some data and wait for an answer while continue operating.

    I face this problem when wrote sms-daemon — the client put sms to queue, daemon sends and waiting for confirmation. But while waiting it should continue to receive another messages from queue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is an excise: In certain graph problems, vertices have can have weights instead
Here is a app contorller directory from Rails project doing a self study for
Here is my code sample, let me know if it can be further improved?
Here's my working query: SELECT d.*, g.name game, (SELECT GROUP_CONCAT(p.name) FROM shows_players p LEFT
Here is small example: X1 <- c(AC, AC, AC, CA, TA, AT, CC, CC)
Here is my root folder : index.php stylesheets(folder) --->main.css includes(folder) --->header.php folder1 (folder) --->page1.php
Here is the code I'm using It's supposed to create labels for each module
Here is an excise Suppose we are given the minimum spanning tree T of
Here is my query: SELECT p.Company , p.Project_ID , p.Name as 'Project_Name' , p.Company
here is the code I am trying to execute, it was working fine on

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.