Search found 11 matches
- Sat Jan 04, 2020 3:57 pm
- Forum: Advanced Help and Support
- Topic: Energy Regeneration
- Replies: -1
- Views: 10709
Energy Regeneration
Hey guys, I'm trying to figure out the best way to handle how energy restores for my game. At first I was just going to run a cron every 10 minutes adding 10 energy points to all users. However, that didn't seem right because certain users perform energy depleting actions at different times, and I w...
- Fri Apr 13, 2018 12:50 am
- Forum: Programs/Assets/Libs/Open Source/Ect...
- Topic: Forum Software and Integration
- Replies: -1
- Views: 4368
Forum Software and Integration
Howdy friends, was wondering what everyone would recommend as far as forum software for a game that can integrate well with my user database? Of course the more secure the better.
Or should I try and roll my own?
I want to have a place where my users can meet up and talk about the game.
Or should I try and roll my own?
I want to have a place where my users can meet up and talk about the game.
- Tue Apr 03, 2018 12:57 am
- Forum: Beginner Help and Support
- Topic: PHP Workers & Working with Modern Javascript Frameworks
- Replies: -1
- Views: 3858
PHP Workers & Working with Modern Javascript Frameworks
Hey guys, I'm back with another question for you fine gentlemen. 1.) What in the blue hell is a PHP Worker? Is it just like a way to use SESSIONS and store persistent data for non-web apps? I'm working with some javascript based frameworks and most of them won't accept php without using a worker or ...
- Tue Mar 13, 2018 11:10 pm
- Forum: Beginner Help and Support
- Topic: Re: Fight Time Restrictions
- Replies: 0
- Views: 71645
Fight Time Restrictions
Hey everyone, still plugging away at a game I'm working on and I'm trying to figure out the best way to approach a fight restriction based on time. Basically, a user can only fight once every 15 minutes. And until the timer is expired they can't click on a "Fight!" button. Now, I understan...
- Sun Nov 26, 2017 11:04 pm
- Forum: Beginner Help and Support
- Topic: MYSQL Two Tables Join Issue
- Replies: -1
- Views: 5953
Re: MYSQL Two Tables Join Issue
I am just trying to echo the move names, but I am using the moveid's(which are both in the moveset and moves table) to get them to join in my query and spit out just the move names. The code I listed above spits out the moveid's based on the wrestlerid(id) from a form on a previous page. I'm assumin...
- Sun Nov 26, 2017 8:46 pm
- Forum: Beginner Help and Support
- Topic: MYSQL Two Tables Join Issue
- Replies: -1
- Views: 5953
MYSQL Two Tables Join Issue
Hello again, I apologize if I am posting too much, I'm just getting stuck a bit more the deeper I get in to my game. Being a novice programmer I assumed this sort of stuff would happen. Anyways, here's my problem. I am trying to display move names from a db. I have a $_GET['id'] stored in the variab...
- Sun Nov 26, 2017 8:35 pm
- Forum: Beginner Help and Support
- Topic: Multiple Randoms On Same Page
- Replies: -1
- Views: 5253
Re: Multiple Randoms On Same Page
Thanks a_bertrand, that was it! I was losing track of the function declaration in my spaghetti code. It was nested in a loop. Thanks guys!
- Sat Nov 25, 2017 9:56 pm
- Forum: Beginner Help and Support
- Topic: Multiple Randoms On Same Page
- Replies: -1
- Views: 5253
Re: Multiple Randoms On Same Page
Thanks Jack. However, I still can't seem to figure it out. I declare the function with function random_int ($min, $max) {return (mt_rand($min,$max));} and call it with $matchFinish = random_int(1,10); I have tried moving the declaration in the same loop as the call and outside the loop. It is only c...
- Sat Nov 25, 2017 7:54 pm
- Forum: Beginner Help and Support
- Topic: Multiple Randoms On Same Page
- Replies: -1
- Views: 5253
Multiple Randoms On Same Page
Hello, I'm still working with getting all my randoms set up for a fighting game I'm working on. My issue is using the same random function twice, once per fighter, to determine a winner. Except, I keep getting the Fatal error: Cannot redeclare random_int() issue. My question is how do you go about g...
- Sun May 21, 2017 6:16 pm
- Forum: Beginner Help and Support
- Topic: PHP Random Float Help
- Replies: -1
- Views: 2173
PHP Random Float Help
PHP beginner here and I am trying to use the code below to generate 5 random floats and then add them together. However, keep running in to a "Cannot Redeclare" error. Any help or suggestions? Thanks! function RandRoll($mod1, $mod2){ $modCalc = 1.00 + $mod1 + $mod2; echo "(" . $m...