Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 8,079
» Latest member: seanac11
» Forum threads: 10,350
» Forum posts: 91,276
Full Statistics
|
Online Users |
There are currently 225 online users. » 0 Member(s) | 223 Guest(s) Bing, Google
|
Latest Threads |
I'm leaving the site too....
Forum: 2DWorlds Discussion
Last Post: Jacob_
07-03-2023, 04:59 AM
» Replies: 12
» Views: 6,033
|
hi there.
Forum: 2DWorlds Discussion
Last Post: Jacob_
01-03-2020, 04:30 AM
» Replies: 1
» Views: 695
|
obroke
Forum: Current Games
Last Post: FrancisSah
09-06-2017, 10:11 AM
» Replies: 0
» Views: 20,502
|
fcouldn't
Forum: Current Games
Last Post: FrancisSah
09-06-2017, 09:02 AM
» Replies: 0
» Views: 8,209
|
qhow
Forum: Current Games
Last Post: PhilipShums
09-06-2017, 07:25 AM
» Replies: 0
» Views: 2,081
|
zstone
Forum: Current Games
Last Post: TimothyTox
09-06-2017, 07:03 AM
» Replies: 0
» Views: 959
|
vbit
Forum: Current Games
Last Post: FrancisSah
09-06-2017, 03:00 AM
» Replies: 0
» Views: 934
|
sildenafil 100 mg sandoz
Forum: Current Games
Last Post: RichardLen
09-06-2017, 12:28 AM
» Replies: 0
» Views: 1,145
|
mhis
Forum: Current Games
Last Post: TimothyTox
09-05-2017, 04:09 PM
» Replies: 0
» Views: 955
|
sildenafil citrate 100mg ...
Forum: Current Games
Last Post: Waltertog
09-05-2017, 12:27 PM
» Replies: 0
» Views: 911
|
|
|
Partially-complete gravity well script! |
Posted by: Ghosty - 03-04-2013, 10:10 PM - Forum: 2DWorlds Discussion
- Replies (15)
|
 |
What it does: It attracts objects to a certain point ('gravitypoint') instead of only pulling them in certain directions like default gravity.
What it has problems with: - When things are close to the center of gravity, they will swing around it wildly. This is because the gravity gets more strong the closer one is to the center, and it overshoots. I'm not completely sure of a really good way to fix this.
- When things bump into other things in the way of the center of gravity, they always bounce away instead of just plowing in and coming to rest. Again, not entirely sure of a plausible fix.
Things it can't do yet but are possible with modification of the script:- Multiple gravity sources. This could also probably be done with multiple scripts running this code, actually...
- Rotation of characters to always 'stand on' gravity sources, like Mario in Super Mario Galaxy.
Suggested by Void in the chat.
[lua]
gravitypoint = Vec2D(200, 0)
gravityxenabled = true
function gravitate(object)
if object.Fixed == false then
local xdist = gravitypoint.x - object.Position.x
local ydist = gravitypoint.y - object.Position.y
if gravityxenabled == true then
local velx = 10 - math.sqrt(math.abs(xdist) / 100)
if object.Position.x > gravitypoint.x then
velx = velx * -1
end
velx = velx * (object.Mass / 10)
--gravitypull.Velocity = Vec2D(velx, gravitypull.Velocity.y)
object.Velocity = Vec2D(object.Velocity.x + velx/10, object.Velocity.y)
print(object.Velocity.x)
end
local vely = 10 - math.sqrt(math.abs(ydist) / 1000)
if object.Position.y > gravitypoint.y then
vely = vely * -1
end
vely = vely * (object.Mass / 10)
--gravitypull.Velocity = Vec2D(gravitypull.Velocity.x, vely)
object.Velocity = Vec2D(object.Velocity.x, object.Velocity.y + vely/10)
print(object.Velocity.y)
end
end
function gravitateAll(object)
local stuff = object:getChildren()
for q = 1, #stuff do
if stuff[q] ~= nil then
if stuff[q].Type == "Box" or stuff[q].Type == "Circle" or stuff[q].Type == "Triangle" then
print(stuff[q].Name)
gravitate(stuff[q])
end
gravitateAll(stuff[q])
end
end
end
while true do
sleep(0.1)
gravitateAll(game.World)
end
[/lua]
|
|
|
Video Game Idea: Project X |
Posted by: BuildistGuard - 03-04-2013, 05:24 AM - Forum: General Discussion
- No Replies
|
 |
Project X:
I don't have any official name for this game as of March 3rd, 2013. I will
It plans on using
- Resources gathering with a variety of materials that includes Wood, Stone, Metal
- Using up Resources to build things and to maintain things other than currency
- Building a City
- Wars that can be fought in Third or First person, but arranging soldiers will always be in overhead view.
- A World map but with customizable maps, a map that loops around, and an Earth map
- Supports Windows, Mac, Linux, and probably my future operating system called "Jovian"
- Natural and Man-made disasters
- Raising a Family
- Using Keyboard controls, WASD and regular arrow keys
- Economy
== Section 1 ==
Personally, I know that C++ is a programming standard for programming Video Games, as far as I know. Is there any good Video Game engines that are open-source and uses C++? Please give the link to them. Eventually when I have the knowledge and time to, I'm going to make a Video Game engine for my Video Games eventually. I also have Ubuntu 12.04 as an operating system?
|
|
|
Presidential term limits should be eliminated. |
Posted by: Oak - 03-03-2013, 07:40 PM - Forum: General Discussion
- Replies (9)
|
 |
I'm not sure about other countries, but in the US the maximum amount of terms you could serve as president is 2. Our motto isn't "We the people" for nothing. Our rights shouldn't be regulated. Look at FDR, people liked him and approved of him, and look how many terms he had (3). I know some say "oh give others a chance", this isn't about sharing, this is about what is best for a country.
|
|
|
Chat bugged. |
Posted by: VenomSinister - 03-03-2013, 05:56 PM - Forum: Bug Reports
- Replies (15)
|
 |
When I press the little "+" in the chat, It opens but I cannot write a message to anyone cause It doesn't scroll the page all the way down. Does anybody else have this same problem? If so, please fix it.
Thank-you for having my time.
|
|
|
|