I've done a number of test and looked up a ton of videos and all I can find is making random saying happen in chat when a player dies. I'm trying to make a GTA style police system so I want 3 vindicators to spawn with the custom name Cop where a player dies. However, I can't find anything that locates where any player dies.
Related
I have been working on a hobby browser game project. I use Express and Socket.io to add real-time feature to the game. My game is currently working 60FPS, it updates player's browser window every 16.67 milliseconds. Each frame, client's current position and it's pressed keys data sent to server via socket.io and each frame client receives other users' positions and pressed keys etc. I think that's pretty much of work for free service on Heroku.
You can check my project and problem using this link: https://test-game9.herokuapp.com/
Problem: Currently clients are able to move around using W, A, S, D keys. And they can see other user's movements. Nothing else. But for some reason my game deployed on Heroku flickers. This flickering problem doesn't occur on localhost. I wonder what's the problem. Do I miss some kind of socket.io options?
Thanks in advance.
It's hard to say what is wrong with this game without reviewing the code. However my guess is that you are not considering the network latency that's why your game works in localhost but not when deployed.
When I move using WASD, my object instantly moves. Which indicates that you are directly taking player's action into effect and update object's position then send the position to others. However the preferred alternative is that when player press any movement key, The information about the movement must be sent to the server first then broadcast it to everyone including moved player itself. Even though it's the player's object, player must listen for network to change position instead of doing it locally and instantly like single player games.
Another possible problem is that you are probably using an interval to send player's object position every N milliseconds whether anyone moved or not, This might be another cause of flicker. Instead you can just send position only when someone moves.
Let's say I wanted to track the location of my car as I drive around the city, just for kicks.
I have an old iphone 5, so I write up a little program using Parse.com framework, and using geopoints easily construct a little collection of data which I save to my cloud server. Piece of cake, right?
Well, my question is this: I put the phone on the seat after I begin to run the program. How do I ensure that the phone does not go to sleep? And what happens to my program if the app goes to sleep/quits? And how would I prevent this, if such a thing might occur?
Read about Apple's "Background Execution" abilities. A great example of this is Spotify: users can select a song, change apps, and put their phone to sleep. All the while Spotify continues to play that song.
In your case it sounds like you want location tracking, most likely using the "Significant-change location service". Using the location framework with background execution enabled will allow your application to save those geo-points to Parse at specific, distance-triggered points, even if the application is in the background or the phone's asleep.
Apparently I have to create my App on iTunes Connect in order to use Game Center code in my project. But wait, I remember that if you wait around 7 months of something, iTunes Connect removes your app and the same name can't be used again.
Is there a way to... remove that time limit?
It's 4 months and no, there is no way to extend it, although I have heard unconfirmed reports of people talking to Apple and getting it extended, but I would not count on that.
I asked this very question on the Apple forums and was told by several people to just create a dummy App, do all your testing and then when you know you can complete it in less than 4 months, create a new final app. The downside is you have to reenter all your leader board and achievement information.
in India we have movie culture where every movie has 5 to 6 songs. We have copy rights and distribution rights for the songs of the some movies. What I want to know is can we make an app which has the only the audio songs in it. So that fans of that movie can download the app and listen to the music of that movie. We will provide the songs along with the app itself , without the users having to stream from the Internet. Before we start off with making of the ap we need to know if apple allows such kind of app. Has any one seen such an app before. I am not sure how to contact apple to ask the same question.
Such an app is possible: see things like the Napoleon Dynamite soundboard app, it's an app that just plays sounds.
The main problem is though, the user would probably expect to have the music in their music collection as well. Are you sure that is the best way?
I want to have a movie start the first time my app is launched to train users on its use, say a 50 second clip.
How would I go about doing this in an iPad app?
(I am building a very complex platform that has hooks into the web and need users to be aware of that. The video will explain that users can go to the website for different features. When the app starts for the FIRST TIME only I want the video to play.)
Don't force users to sit thru a 50 second movie when the app starts. Your user interface should be obvious enough that they can figure out the basics without watching a training video. If you want to offer it, provide a help button, where they can watch it when they choose to.
See the iPhone HIG section Minimal User Help, which says:
A hallmark of the design of iPhone
OS–based devices is ease of use, so
it’s crucial that you meet users’
expectations and make the use of your
application immediately obvious.
EDIT -- The simplest way to keep track would be to store a flag indicating whether or not you have shown the video by using NSUserDefaults. Check if it's set at startup, set it after showing the video the first time.