Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark Physics & Dark A.I. & Dark Dynamix / PHY Penny Fall demo [WIP]

Author
Message
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 12th Jun 2008 13:24 Edited at: 14th Jun 2008 11:33
Hi All,

Thought I'd share this with you. plus you will need to download the coin.x object.

edit
code update and coin.x object updated.



Dark Physics makes any hot drink go cold.

Attachments

Login to view attachments
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 12th Jun 2008 18:05
I get the following runtime error:

Actor must be (non-kinematic) dynamic!

LB
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 12th Jun 2008 18:11
Did it say which line it was moaning about.

Dark Physics makes any hot drink go cold.
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 12th Jun 2008 18:38
Works fine, but kind of lame when it goes so slow
And you dont need a coin object, just make a cylinder and scale it


Programming Recorder: 2,5 months of dark basic
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 12th Jun 2008 18:43
Cylinders are hollow you can see through them, that's why I have used a coin object.

As for slow must be which system its on.


At least it works on someone else system.

Dark Physics makes any hot drink go cold.
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 12th Jun 2008 21:12
Yeh, correct

I though set object cull id,0 would work, but that wont fix some places.


Programming Recorder: 2,5 months of dark basic
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 12th Jun 2008 21:17
Would have been nice if there been a option to make ends capped or truly hollow.(try dropping a sphere through a cylinder.)

Also it would have been great if there was phy command for round objects.

I think mesh works but not yet found out which way the object has to be set.

Dark Physics makes any hot drink go cold.
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 13th Jun 2008 16:52
Quote: "Also it would have been great if there was phy command for round objects."


Uhh, sphere?


Programming Recorder: 2,5 months of dark basic
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 13th Jun 2008 19:34
sphere would be great if you could flatten it, else it a disc object with the shape of a ball round it.

tried it with sphere, that just makes them fly all over the place and they don't fit the gap they have to fall down.

Dark Physics makes any hot drink go cold.
sindore
20
Years of Service
User Offline
Joined: 2nd Jul 2004
Location: Bedfordshire, UK
Posted: 13th Jun 2008 23:05
HowDo you need to make your coin smaller, or change the size of your pins machine.

and for you coin collisions use



this will make collision work a hell of a lot better, don`t save this as the same name x file as the one you loaded for your coin.

make your pins machine out of limbs and do the same thing.

and I posted to your post a on FPS challenge.

soul sucking devils, twisted body of the damed, slivering slim drips from ever poor, sin licking at your ears, and the smell stinging your eyes, and if you don't like it, get out of my kitchen!....
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 13th Jun 2008 23:16 Edited at: 13th Jun 2008 23:27
cheers sindore, tried saving the mesh but was doing it wrong loading each time, oops.


edit
over wrote the objects copy so had to reload the original thats when I find out that the face side are not flat(Grrr), there are now flat should work a bit better.

Dark Physics makes any hot drink go cold.
sindore
20
Years of Service
User Offline
Joined: 2nd Jul 2004
Location: Bedfordshire, UK
Posted: 14th Jun 2008 02:48
HowDo can you edit your 1st code post so I can have a look at an update of it?

soul sucking devils, twisted body of the damed, slivering slim drips from ever poor, sin licking at your ears, and the smell stinging your eyes, and if you don't like it, get out of my kitchen!....
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 14th Jun 2008 10:39
@sindore

first post update as requested, it seems to be working better now I got the coin shape right.

Dark Physics makes any hot drink go cold.
sindore
20
Years of Service
User Offline
Joined: 2nd Jul 2004
Location: Bedfordshire, UK
Posted: 14th Jun 2008 11:11 Edited at: 14th Jun 2008 11:30


ok HowDo as you can see from the pic above, you need to make the pins rounder on there collisions.

and there needs to be more space for the coins to drop, could you add a randome value to coins when they hit the pins, just to keep them moving?

or maybe a bit of bounce to the coin when it hits a pins, if you do make changes can you update your 1st post again.

Edit

that pic was from the update.

soul sucking devils, twisted body of the damed, slivering slim drips from ever poor, sin licking at your ears, and the smell stinging your eyes, and if you don't like it, get out of my kitchen!....
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 14th Jun 2008 11:21
have you tried the update yet.

Dark Physics makes any hot drink go cold.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 14th Jun 2008 12:49
found that if you are giving your objects a material, then phy set material friction combine ID Value#, will stop one from slow creeping off the other.

Dark Physics makes any hot drink go cold.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 15th Jun 2008 19:44 Edited at: 15th Jun 2008 19:45
another update this one looks a bit more like it.



Dark Physics makes any hot drink go cold.
sindore
20
Years of Service
User Offline
Joined: 2nd Jul 2004
Location: Bedfordshire, UK
Posted: 15th Jun 2008 21:10 Edited at: 15th Jun 2008 21:11
yer that worked like a dream, nice work but you need to change the sides of your coin machine, it has gaps and coin keep escaping, maybe a bit less bounce on the coins, but keep some.

I think you need to add game logic to this game now.
like start with 25 coins to play with and the machine has 25 coins laying about inside it.
once all your coin are gone then its game over.
every time you knock a coin off it gets deleted and added to you coin total, but its up to you.

then all you got to do is texture it with some cool images, golden coins and flashy sounds.

some Fx would make this game look the biz.

I`ll help you with some basic textures if you wont.

soul sucking devils, twisted body of the damed, slivering slim drips from ever poor, sin licking at your ears, and the smell stinging your eyes, and if you don't like it, get out of my kitchen!....
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 15th Jun 2008 21:41
sindore if you ever played one of these machines you would know that the ones that fall out the sides are the company's profit, only those that come out the front are your winnings.

plus you could be putting 70 to 100 coins before you win anything.

Think it will eventually have a memory system which will put all the coins back where they when you rerun it again after closing it.

The pretty looks will come later when it starts going a bit better.

its getting there...

Dark Physics makes any hot drink go cold.
sindore
20
Years of Service
User Offline
Joined: 2nd Jul 2004
Location: Bedfordshire, UK
Posted: 15th Jun 2008 22:08 Edited at: 15th Jun 2008 22:12
Quote: "sindore if you ever played one of these machines you would know that the ones that fall out the sides are the company's profit, only those that come out the front are your winnings."


most of the machines I`v played had company`s winning at the sides of the winnings plate.

so as the coins are pushed some drop down and are winnings, and some get pushed down the sides and are company`s takings.

but I did like it a lot, and I think this is one of the bast small games I ever played.

can`t wait till you have the game logic in place.

that just gave me an idea, could you not do levels of this?

I mean different types of slot games per level, and the amount of coins you get depends on what machine you playing.

Quote: "plus you could be putting 70 to 100 coins before you win anything."


thats why I said about having some coins laying around on the flat plate and moving plate.

Quote: "The pretty looks will come later when it starts going a bit better. "


sorry I`m just getting a bit enthusiastic.

soul sucking devils, twisted body of the damed, slivering slim drips from ever poor, sin licking at your ears, and the smell stinging your eyes, and if you don't like it, get out of my kitchen!....
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 15th Jun 2008 22:31
One thing that is driving me nuts with the code, is to stop coins that are not doing anything from moving, they seem to have a mind of there own and crawl forward.

I put in something that says it will put items to sleep until moved, but if it is working it not doing it.

Dark Physics makes any hot drink go cold.
sindore
20
Years of Service
User Offline
Joined: 2nd Jul 2004
Location: Bedfordshire, UK
Posted: 16th Jun 2008 00:50 Edited at: 16th Jun 2008 01:15
the problem is (sleep until moved) will do just that and if anything touches that object then it will wake up again.

so unless you put it back to bed, it will keep moving.

this guy fixed a problem smiler to this here is the link.
http://forum.thegamecreators.com/?m=forum_view&t=131461&b=30

maybe you should ask him, I would help but I don`t know how to fix something like this.

however I will look in to this.

edit

just had a idea could this movement be something to do with material of the object?

I just run the code again, and there is way to much bounce on the coins some times.

I think just having the pins make the coins bounce a little should work good.
make the coin material metal, and the pins rubber if you can.

if you change this code can you post it again.

soul sucking devils, twisted body of the damed, slivering slim drips from ever poor, sin licking at your ears, and the smell stinging your eyes, and if you don't like it, get out of my kitchen!....

Login to post a reply

Server time is: 2024-11-24 23:37:20
Your offset time is: 2024-11-24 23:37:20