| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 10 months |
| seen | Apr 8 at 2:16 | |
| stats | profile views | 9 |
|
Apr 6 |
comment |
Discover x,y coordinates given set arc distance and rotation I meant the newPosition.y equal to length, not the radius. |
|
Apr 6 |
comment |
Discover x,y coordinates given set arc distance and rotation If turnSpeed is equal to zero, the radius will end up as Infinity, and TransformPoint() will return NaN. I added an extra else to account for it, setting radius equal to length if turnspeed is 0. |
|
Apr 5 |
comment |
Discover x,y coordinates given set arc distance and rotation Overall great! Thanks for pointing me to this. I'm surprised there's no shorthand way to do this. (Without solving for the whole circle, its origin, etc.) |
|
Apr 5 |
comment |
Discover x,y coordinates given set arc distance and rotation Hmm, you need to rotate the car object as well, or else it won't continue the curve. Also the turning right version you gave uses sin() and the y angle uses cos(), I believe those should be swapped. I changed the script to my specific use: pastebin.com/T0AFxehn |
|
Apr 5 |
accepted | Discover x,y coordinates given set arc distance and rotation |
|
Apr 5 |
asked | Discover x,y coordinates given set arc distance and rotation |
|
Sep 8 |
answered | Designing a simple snake A.I |
|
Sep 7 |
comment |
android game performance regarding timers @iQue Just made an edit; the way I had the timer set up it would only trigger once. I believe your code example was set up to trigger every 5 seconds, so I added spawnEnemyTimer -= 5.0f; to reflect that. |
|
Sep 7 |
revised |
android game performance regarding timers oops, fixed code so the timer triggers every 5 seconds instead of just once |
|
Sep 7 |
comment |
android game performance regarding timers Great! Since you're already using it, you should try and make every component of your game use deltaTime, and safely ignore the absolute system time from now on. |
|
Sep 7 |
comment |
android game performance regarding timers If you want to quickly hack your current system, you could remember the system time in your onPause() callback, and reschedule your timer to never trigger. Then when your program comes back, in the onResume() callback you figure out how long you were sleeping for, and then reschedule the timer to a new time based on that information. |
|
Sep 7 |
revised |
android game performance regarding timers deleted 11 characters in body |
|
Sep 7 |
answered | android game performance regarding timers |
|
Sep 7 |
comment |
Which one have to use Canvas or Open GL for 2D game in Android @Ren Glad to help. Let me know if I could narrow the information you're interested in. |
|
Sep 7 |
comment |
android game performance regarding timers You could just add the timer into the class that's the level you're spawning. Do you have anything that's keeping track of elapsed time in the game, maybe an enemy controller? |
|
Sep 6 |
comment |
android game performance regarding timers How are your other entities keeping track of time? You should just have a timer class you pass the deltaTime to every frame, and it switches a boolean once the total time reaches your amount (5 secs). Then you query the class each frame and ask it, "are you ready?" and it returns its boolean. |
|
Sep 6 |
comment |
P2P synchronization: can a player update fields of other players? To limit cheating as much as possible without a server, the only messages you should be sending should be player input. Then both clients simulate the gameplay locally, and come to the same solution. So if you're making a fighting game, player A says, "I'm starting my kick" and 6 frames later player B thinks, "welp I got hit by the kick now" instead of player A potentially sending "I hit you for 1 billion damage" 20 times every frame. |
|
Sep 6 |
answered | Which one have to use Canvas or Open GL for 2D game in Android |
|
Sep 6 |
answered | Making retro games: Any good known game architectures? |
|
Sep 6 |
comment |
Acceleration Based Player Movement With that friction example, you'll want something to stop the player absolutely once his velocity gets close enough to zero (currently it never will). Might I recommend additive instead of multiplicative friction, anyway. |