-
Posts
912 -
Joined
-
Last visited
-
Days Won
7
Content Type
Profiles
Forums
Events
Everything posted by Coly010
-
So could you send me hints and tips and little snippets of cOde for how to do the multiplayer part the collision which would be between say the player and a wall of a house. What does Rle compress? I'm going to use nappy or tiled qt to create my maps but how do you have it in mappy so that u can have more than one tile block showing? Everytime I go to add a tile it changes the one I have up. When I finish my map should I export it as a .MAP file or a text file? Lol this is a lot of questions but I need to understand the basics before delving further. One more question. How do you pull the map data from the database? Thanks again Coly010
-
i'm thinking of creating a 2d tiled game but i want to know how would you make it online and how would you pull the map from a text file or should i do it via database. i think doing it via text file would be easier as i could just do stuff like 10111110 11111111 00000000 11100111 22114110 but then how do you make it so that you can see other users? i know neab has sumthing like this but i want to do this from scratch. then i would need to learn collision lol but it would be worth it and also if it was to be fight anyone you see anywhere do you think that the game might be slow for all users. or should i just create certain areas for fights. and then create dungeons which would require loading up new levels. so tell me what you think anyway thanks
-
hello I'm just here to Announce my new game project. This is a windows game. I know this is a Makewebgames but I think there is a way to use silverlight to attach it to a webpage but alternatively and probably better speed wise it can be downloaded. Now this game is a 2d side scroller game being created with the XNA framework. It is just a series of levels and the little square which will be the player has to complete the levels. The sequel to this may be more graphical but it will definatley contain a storyline. It has taught me how to use tiles and for the game I'm using black squares for the ground. When it is done I shall post screenshots.
-
Must be the screen size. I have used visual studio to create a web browser but the one thing that needs to be taken into consideration is how big the computer screen is. So it could just be the screen of computer or even ( if the browser was built in this way) that the browser can not be enlarged like dragged bigger. I've never heard of RockMelt and don't think I'd want to after reading some of these . One rule every web designer should stick to is stick to the four main browsers( in my opinion): google chrome , IE, Firefox, Safari
-
he doesnt want help he is giving it. haha you need to read it lol you should broaden your style of game
-
Can u export the models created into a Like a model file where it shows the full 3d interface. What I mean is when u open this file up you can swizz around it and look at the back. I found a game maker called Platinum Arts Sandbox. You can import models into it and then create your world in it. Once you have finished your world you need to code it. So what you do is you go into the game maker interface and say you want a door to open when u aproachbit you type `entset mapmodel id, type of ent, range, then how back/ forward you want door to swing . For example `entset mapmodel 1, 10, 10 -5 But then for things like when you walk up to a person and you want a conversation to start you need to do the same again except set the ent type to 8 or 12 then code into the main file Level_trigger_1 { Newgui (Tom) } You get the Idea So us there any of them that you can do that with.
-
i'm not sure but you would run sql altering the user table to add crime exp first. i dont know about how to make it easier for them to win it. the way it is now, the bigger the will the more chance they have. so if you could alter that to the crime exp then you're sweet. this may be what the sql code should look like: [mysql] ALTER TABLE `users` ADD `crimeexp` DECIMAL ([something or other]) NOT NULL DEFAULT `10`; [/mysql] they need to have some exp so they can have a chance at winning then the part where the crimeexp goes up in the crimeSTEXT(i think thats what it is) of the crime table in the database you would need to add mysql_query("UPDATE users SET crimeexp=crimeexp + 10 WHERE userid=$userid,$c"); you have pulled it off then for the crimeFTEXT mysql_query("UPDATE users SET crimeexp=crimeexp - 10 WHERE userid=$userid,$c"); you have failed you're using lite right? i think that should work
-
scratch that. it'll be done by monday. all the images are too big. so. i'll do it just not the night
-
That's grand I will. In about 30- 50 minutes I'll start. I'm going out in like ten mins for like 10 mins . I think you'll find it more like kid art because I'm only 13 lol. My cousin, 7, gave me the inspiration for it when I seen him running around with Sellotape :p
-
Thanks illusions , so do you think I should code it? It'"ll most likely be handed out for free. I have also started an A3 sized different outer game template which I think is a little better. Well lots for my standards. The problem Is to create the effect it has there is a lot of images :( . i've spent the last few days of in my grannies house with nothing to do That's why I have taken such an interest. For the coding of this new one I need to know. How do you get the webpage like in the center of the browser. Know the way the three column header is. Does anyone have a clue. I shouldn't ask that as there will most likely be someone. @ Lilith that Is the exact look. A kids game thing. I started an in game one for it too but it was horrible. Way worse . Better than my soulless warrior login but :p So anyway thanks for the comments i'll get it coded as soon as possible and if anyone wants to use it. I'm back at school tomorrow and my school is lousey so I'll try and get it coded asap when Iget back on my laptop. ( on iPod now)
-
@ zu can u do more than two in the same query? @ curt ok i'll take that on board thanks for pointing it out @ dominion great thanks for pointing that out. i'm not used to v2
-
the only good one i made is my peacock one
-
its real hard for me to get brushes compatible with my photoshop :( its elements dont know what one but. easyelements.com is like the only place that i can get brushes and there hasnt been any new ones added:(
-
yeah i know i've all ready sacked it
-
ok... i'll just keep practising
-
lol funny u said that i just finished downloading abstract brushes from there about 5 seconds ago. how do you create good brushes? what is it you need to do? i know HOW to create one just not how to make a good one
-
could you please shorten these into like 5 different rar files cos it says its gonna take 8 daays with my internet speed oh waait 9 days
-
they are amazing. anyway advice to a 13 year old beginning graphic design? did you have to download brushes etc and patterns?
-
first off when i say good, it means good for mei created a new layout and if you're wondering why the bits are crooked they are supposed to be like that as it supposed to have been stuck onto the wall by a kid. now please i really do need comments back negative or positive. btw i drew this out on a sheet and then had to go over the lines on photoshop which may be why they look a bit weird. i dont know whether to give this out or not. if i get enough good comments then maybe. and it'll be coded too when i hand it out. i have the PSD too so for the logo someone would have to pm their game name. underneath the game name to the left is the bit where the links for home | story | Register so here we go this is the image itself: if the one above doesnt work then this one might: thanks, Coly010
-
where is the error for the sql coming up cos i dont see a problem and the same with line 32
-
Ok this is the Real Estate mod i mention in the Sleep to restore health topic it is basically another way for the users to make money but the have to spend it to get it. They have to buy houses and hotels to up their income but then taxes get taken off it. taxes vary depending on income level and real estate level. everything else is explained in the files now to start: run this into the sql [mysql] CREATE TABLE IF NOT EXISTS `Real_Estate` ( `R_id` int(11) NOT NULL, `R_lvl` int(11) NOT NULL DEFAULT `0`, `R_houses` int(11) NOT NULL DEFAULT `0`, `R_hotels` int(11) NOT NULL DEFAULT `0`, `R_income` int(11) NOT NULL DEFAULT `0`, `R_tax` int(11) NOT NULL DEFAULT `0`, `R_upgrade` int(11) NOT NULL DEFAULT `10000`, PRIMARY KEY (`R_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; ALTER TABLE `users` ADD `R_E` int(11) NOT NULL DEFAULT `0`; [/mysql] create file real_estate.php <?php include "globals.php"; $is1=$db->query("SELECT * FROM Real_Estate WHERE R_id=$userid",$c) or die(mysql_error()); $ir1=$db->fetch_array($is1); switch($_GET['do']) { case 'register_con': rcon(); break; case 'buy_hcon': bhcon(); break; case 'buy_hsub': bhsub(); break; case 'buy_hocon': bhocon(); break; case 'buy_hosub': bhosub(); break; case 'upgrade_con': upgcon(); break; case 'upgrade_sub': upgsub(); break; default: realestate_index(); break; } function realestate_index() { global $ir,$c,$userid,$ir1; if ($ir['R_E'] = 0) { echo "<center><h2>Real Estate</h2> You have not delved into the business of Real Estate yet. It is very easy to do. Just click the button below. "; echo "<form action='real_estate.php?do=register_con' method='post'> <input type='hidden' name='id' value='{$userid} /> <input type='submit' value='Start Real Estate Now!' /> </form></center>"; } else { $tax = ($ir1['R_tax'] / $ir1['R_lvl']) - ($ir['level'] / 2 ); $netincome = $ir1['R_income'] - $tax; echo "<center><h2>Real Estate</h2> Welcome back $ir['username']! Your Real Estate Stats are below. <table><tr><td>Level: $ir1['R_lvl']</td><td>Houses: $ir1['R_houses']</td><td>Hotel: $ir1['R_hotels']</td></tr> <tr><td>Income: $ir1['R_income']</td><td>Tax: $tax</td><td>Net Income: $netincome</td></tr></table> [b]<u>Buy Properties</u>[/b] [url='real_estate.php?do=buy_hcon']Buy House[/url] [url='real_estate.php?do=buy_hocon']Buy Hotel[/url] [b]<u>Upgrade Business</u>[/b] [url='real_estate.php?do=upgrade_con']Upgrade Business[/url] </center>"; } } function rcon() { global $ir,$c,$userid,$ir1; $db->query("INSERT INTO Real_Estate (R_id, R_lvl, R_houses, R_hotels, R_income, R_tax, R_upgrade) VALUES ('{$_POST['id']}', 1, 0, 0, 0, 0, 10000),$c"); echo "<center>You have successfully entered the business of Real Estate go [url='real_estate.php']Back[/url] and start building up your income!</center>"; $db->query("UPDATE users SET R_E = 1 WHERE userid=$userid,$c"); } function bhcon() { global $ir,$c,$userid,$ir1; echo "<center>Are you sure you want to buy a house? It costs 1000 gold to buy one. It then adds 100 gold to your income. Tax is 5%. [url='real_estate.php?buy_hsub']Yes I'm Sure.[/url] [url='real_estate.php']Sorry I'm Not[/url] </center>"; } function bhsub() { global $ir,$c,$userid,$ir1; $db->query("UPDATE Real_Estate SET R_houses = R_houses + 1 && R_income = R_income + 100 WHERE R_id=$userid,$c"); $db->query("UPDATE Real_Estate SET R_tax = R_tax + 5 && R_upgrade = R_upgrade + 70 WHERE R_id=$userid,$c"); $db->query("UPDATE users SET money = money - 1000 WHERE userid=$userid,$c"); echo "You have successfully bought One House. Your Income is: $ir1['R_income']"; } function bhocon() { global $ir,$c,$userid,$ir1; echo "<center>Are you sure you want to buy a hotel? It costs 10000 gold to buy one. It then adds 1000 gold to your income. Tax is 10%. [url='real_estate.php?buy_hosub']Yes I'm Sure.[/url] [url='real_estate.php']Sorry I'm Not[/url] </center>"; } function bhosub() { global $ir,$c,$userid,$ir1; $db->query("UPDATE Real_Estate SET R_hotels = R_hotels + 1 && R_income = R_income + 1000 WHERE R_id=$userid,$c"); $db->query("UPDATE Real_Estate SET R_tax = R_tax + 1oo && R_upgrade = R_upgrade + 700 WHERE R_id=$userid,$c"); $db->query("UPDATE users SET money = money - 10000 WHERE userid=$userid,$c"); echo "You have successfully bought One Hotel. Your Income is: $ir1['R_income']"; } function upgcon() { global $ir,$c,$userid,$ir1; echo "<center> Are you sure you want to upgrade your Real Estate business. This helps to lower your tax. It costs $ir1['R_upgrade'] to do so. [url='real_estate.php?upgrade_sub']Yes I'm Sure.[/url] [url='real_estate.php']Sorry I'm Not[/url] </center>"; } fucntion upgsub() { global $ir,$c,$userid,$ir1; $db->query("UPDATE users SET money = money - '{$ir1['R_upgrade']}' WHERE userid = $userid,$c"); $db->query("UPDATE Real_Estate SET R_lvl = R_lvl + 1 WHERE R_id = $userid,$c"); echo "You have successfully upgraded your Real_Estate business.!"; } $h->endpage(); ?> Then add into the cron_day.php $is1=$db->query("SELECT * FROM Real_Estate WHERE R_id=$userid",$c) or die(mysql_error()); $ir1=$db->fetch_array($is1); $rincome = $ir1['R_income']; $db->query("UPDATE users SET money = {$rincome} WHERE userid='.$_SESSION['userid'],$c"); Then add in either Explore or Mainmenu: [url='real_estate.php']Your Real Estate[/url] thanks for reading . as always post and bugs or errors so i can learn from my mistake.
-
is the '.$_SESSION['userid']) correct for the cron so that it happens to everyone even those offline?
-
and can $c be there or would it ruin the file?
-
yeah i know. i own lite and i'm trying to code v2 doesnt really work well but should it not be $db-> not db->?
-
there its edited. now can you tell me what you think of my mod altogether?