 I always wanted to make a game with really good physics interaction that give the player many route to solve the challenges or just to have fun in the world and experiment with interactions but my expirience stopped at Little Big Planet editor because when I tried in other engines I got stuck because I was missing the basics of coding and integrating with the usually cpu stressing physics interactions was a too steep learning curve. Yesterday I gave it a try again with GM:S 2 built in engine and to my surprise not only my ability of coding a cursor that can interact with world took only a few minutes and some tweaks from the ones I used in other non physics based games but also the built in engine works so much better then it used too. I stressed it by spawning tons of objects and it get only some dips in framerate. I'm really happy and excited about this because some game ideas I have dosen't even require a fractions of what I tested here. **BOUNCY STUFF** https://youtu.be/76NnQkv4nwU **A Small Guide** The process of making these physics interaction work is really easy, the only problem come on how Game Maker handles the code run invisible to my eyes so probably you will get into some later problems down the line. Having a written and editable code is always better but that's something I 'll look into future. **Acivating Room Physics** The first step is the easiest one, just go in the Room menu settings and flag Enable Physics Here you can choose the global gravity settings, keeping in mind that Pixel to meters is a ratio that is gonna interact with Gravity x and Gravity Y  **Creating the objects** After having the physics enabled one can already start building the objects to populate the world. Here I made the wall collision by using a simple rectangular sprite and setting his density to 0 so that would remove the gravitational pull and make it a static object.  **Collision Mask** Remember that when using the built in Physic engine the old sprites collision masks don't work anymore instead you have to make new one in the Object>Physics menu by clicking down on the Modify Collision Shape.(Works even better and more accurate then the other one)  **Proprieties and Colliding Objects** To have the objects interact with each other you have first to flag the Uses Physics in the main object menu and then you can just add an empty event with the object you want to collide with and you are already set. Then you can change the parameters to make different kind of objects. To make this heavy wooden ball I cranked way too up the density(just with 10 density look already like it) and made it with very little restitution upon bouncing off another object.  **Player Interaction** Then I made a mouse cursor to interact with the world, I made two actually one that is not a Physic object as you can see in the video earlier in the post wich is used just to spawn other stuff with the some code as below. Then I made a duplicate of that one but with activating Physics. I gave it a lot of density so it could push other objects around but it dosen't fall under gravity because I have swapped the code: x = mouse_x y = mouse_y wich make an object float at the mouse coordinates but wont work with Physics object. So I changed into this using built in variables: phy_position_x = mouse_x phy_position_y = mouse_y wich nullifies the law of gravity for the object keeping it at mouse coordinates.  Here below you can see the showcase of the physics based mouse cursor, still I have to find a way to keep it more steady. <iframe width="560" height="315" src="https://3speak.tv/embed?v=mproxima/xifcyonx" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> Have a goodday!😁
author | mproxima | ||||||
---|---|---|---|---|---|---|---|
permlink | playing-around-with-physics-gms-2-build-in-engine | ||||||
category | hive-176981 | ||||||
json_metadata | "{"app":"peakd/2021.05.5","format":"markdown","description":"Physics interaction tutorial","tags":["game-design","blockchain","gaming","pixelart","palnet","creativecoin","physics"],"users":[],"image":["https://files.peakd.com/file/peakd-hive/mproxima/23vsLX9xmKADpfnr9WevaPfDMGKzAzPFxNNwQabUfcjrv9DJXCZ88MZ6annV9318a8gFr.png","https://files.peakd.com/file/peakd-hive/mproxima/Eo45n4wXmJXcRoXNC6NPYEKXD7eqdoxiRt6rgf5AmoqHNACtfnLu97qrviQehZsZVMR.png","https://files.peakd.com/file/peakd-hive/mproxima/23t76y5J81h9rkudvBQ5Gx3f3eNjGE43hu7V6oRsr5So8EdrATAcdxzefsTiBHxESSeWK.png","https://files.peakd.com/file/peakd-hive/mproxima/23swgShsXq8GRoZ6ri18TASy9KDGLdaqRhTR6WxxZqgg1qAaBJEzhjzUuj9kK1kUAKXcG.png","https://files.peakd.com/file/peakd-hive/mproxima/23swfuMRgrG27pJ1kEUkhPdsbWwmtoL3D8wqVrCtUSnUQM33v9Cq1YYWQLFaMAL9nvpVT.png","https://files.peakd.com/file/peakd-hive/mproxima/23swgSfP5u5uWMSPmm7HJudpgb8MVfDnPo13naf22pPcW5e6XdcFGrUwJVgff8xTQXs4G.png"]}" | ||||||
created | 2021-06-06 10:28:51 | ||||||
last_update | 2021-06-06 10:28:51 | ||||||
depth | 0 | ||||||
children | 6 | ||||||
last_payout | 2021-06-13 10:28:51 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 9.938 HBD | ||||||
curator_payout_value | 10.441 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 4,627 | ||||||
author_reputation | 35,190,365,212,225 | ||||||
root_title | "Playing around with Physics - GM:S 2 build in engine" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 104,164,418 | ||||||
net_rshares | 33,076,275,884,266 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
ausbitbank | 0 | 30,517,512,080 | 2.5% | ||
donatello | 0 | 2,189,048,458 | 2.5% | ||
seckorama | 0 | 10,733,098,638 | 7.5% | ||
keuudeip | 0 | 2,485,844,219 | 5% | ||
thatsweeneyguy | 0 | 796,359,485 | 2.5% | ||
enjar | 0 | 810,642,517,871 | 100% | ||
macchiata | 0 | 1,677,426,852 | 2.5% | ||
jeanlucsr | 0 | 5,227,245,461 | 3% | ||
redrica | 0 | 2,577,647,260 | 2.75% | ||
spiceboyz | 0 | 23,155,905,834 | 25% | ||
cconn | 0 | 921,756,806 | 30% | ||
tomwafula | 0 | 887,763,190 | 30% | ||
gianluccio | 0 | 31,692,745,239 | 17.5% | ||
postpromoter | 0 | 156,668,260,490 | 5% | ||
ciuoto | 0 | 4,274,577,080 | 12.5% | ||
carolineschell | 0 | 41,741,372,602 | 25% | ||
marcolino76 | 0 | 3,095,688,119 | 12.5% | ||
spiritabsolute | 0 | 25,433,417,483 | 100% | ||
straykat | 0 | 17,255,627,102 | 12.5% | ||
fourfourfun | 0 | 7,983,769,717 | 25% | ||
alequandro | 0 | 3,662,810,759 | 12.5% | ||
smjn | 0 | 736,858,265,400 | 100% | ||
pab.ink | 0 | 15,344,049,733 | 12.5% | ||
warpedpoetic | 0 | 1,392,827,990 | 2.5% | ||
piumadoro | 0 | 3,328,703,413 | 25% | ||
andimywapblog12 | 0 | 384,729,502 | 10% | ||
mad-runner | 0 | 44,611,232,343 | 17.5% | ||
miroslavrc | 0 | 4,935,665,752 | 2.5% | ||
sbarandelli | 0 | 5,186,579,924 | 25% | ||
vittoriozuccala | 0 | 8,452,213,284 | 12.5% | ||
lycos | 0 | 972,586,732 | 12.5% | ||
obsesija | 0 | 1,171,628,387 | 2.5% | ||
spaghettiscience | 0 | 14,172,771,289 | 25% | ||
quochuy | 0 | 213,736,913,144 | 9.33% | ||
kgakakillerg | 0 | 26,003,592,999 | 10% | ||
oscurity | 0 | 8,841,490,477 | 20% | ||
bafi | 0 | 493,451,761 | 25% | ||
phage93 | 0 | 2,952,414,350 | 25% | ||
serialfiller | 0 | 99,753,740,831 | 50% | ||
bdmillergallery | 0 | 67,843,602,648 | 6% | ||
giuseppemasala | 0 | 1,235,076,471 | 25% | ||
acquarius30 | 0 | 564,000,000 | 25% | ||
doodle.danga | 0 | 1,499,613,447 | 25% | ||
steemulant | 0 | 522,500,065 | 26.53% | ||
ocdb | 0 | 11,695,462,145,614 | 5% | ||
armandosodano | 0 | 88,093,065,035 | 17.5% | ||
ilnegro | 0 | 2,118,255,076 | 12.5% | ||
smartvote | 0 | 47,908,973,243 | 2.29% | ||
coccodema | 0 | 3,838,003,751 | 25% | ||
itegoarcanadei | 0 | 759,174,180 | 25% | ||
misterc | 0 | 124,821,390,228 | 50% | ||
middleearth | 0 | 1,004,746,325 | 25% | ||
adinapoli | 0 | 4,655,643,349 | 12.5% | ||
akireuna | 0 | 1,603,955,469 | 25% | ||
discovery-it | 0 | 502,128,926,485 | 25% | ||
variedades | 0 | 681,655,630 | 2% | ||
lallo | 0 | 11,460,490,686 | 25% | ||
cooperfelix | 0 | 1,070,392,564 | 17.5% | ||
david.steem | 0 | 1,223,446,762 | 22.5% | ||
titti | 0 | 10,748,325,906 | 25% | ||
maryincryptoland | 0 | 6,376,805,580 | 25% | ||
stregamorgana | 0 | 975,605,217 | 25% | ||
meeplecomposer | 0 | 1,978,452,039 | 15% | ||
threespeak | 0 | 16,770,332,112,068 | 30% | ||
libertycrypto27 | 0 | 39,759,024,218 | 10% | ||
akumagai | 0 | 33,646,136,928 | 100% | ||
borjan | 0 | 289,457,430,076 | 26.5% | ||
maruskina | 0 | 12,293,816,030 | 12.5% | ||
claudietto | 0 | 2,992,687,165 | 12.5% | ||
omodei | 0 | 1,649,574,289 | 25% | ||
medussart | 0 | 3,445,254,849 | 25% | ||
alypanda | 0 | 788,304,074 | 100% | ||
madisonelizabeth | 0 | 651,249,916 | 100% | ||
axel-blaze | 0 | 12,108,316,902 | 25% | ||
discovery-blog | 0 | 5,607,001,348 | 25% | ||
riccc96 | 0 | 2,326,609,358 | 6.25% | ||
delilhavores | 0 | 6,718,635,044 | 25% | ||
hjmarseille | 0 | 2,794,390,522 | 22.5% | ||
oblivioncubed | 0 | 348,696,891,583 | 100% | ||
lacking | 0 | 203,919,602,324 | 100% | ||
im-ridd | 0 | 225,863,355 | 12.5% | ||
disagio.gang | 0 | 172,444,150 | 25% | ||
mengene | 0 | 1,385,131,564 | 12.5% | ||
kreur | 0 | 169,452,890,662 | 100% | ||
peterpanpan | 0 | 25,651,882,257 | 25% | ||
meppij | 0 | 98,607,719,463 | 25% | ||
matteus57 | 0 | 1,512,216,752 | 25% | ||
threespeak-es | 0 | 14,644,771,450 | 70% | ||
ilpaso | 0 | 466,212,138 | 12.5% | ||
daniky | 0 | 827,530,913 | 1.25% | ||
patronpass | 0 | 1,073,476,286 | 30% | ||
flewsplash | 0 | 1,164,203,343 | 25% | ||
plusvault | 0 | 592,214,436 | 30% | ||
mercurial9 | 0 | 22,992,303,328 | 100% | ||
mattbee | 0 | 592,218,798 | 100% | ||
kattycrochet | 0 | 1,029,862,212 | 2.5% | ||
dcrops | 0 | 4,697,849,413 | 2.5% | ||
hive-126300 | 0 | 592,099,604 | 100% | ||
chibititan | 0 | 3,006,337,413 | 100% | ||
mimerr | 0 | 5,731,563,735 | 100% | ||
farleyfund | 0 | 5,674,473,335 | 100% | ||
asuk4 | 0 | 1,078,151,810 | 5% | ||
joseluis91 | 0 | 595,465,364 | 25% | ||
janetfund | 0 | 26,534,467,965 | 100% |
!discovery 25
author | adamada |
---|---|
permlink | re-mproxima-qufzff |
category | hive-176981 |
json_metadata | {"tags":["hive-176981"],"app":"peakd/2021.06.2"} |
created | 2021-06-09 16:06:51 |
last_update | 2021-06-09 16:06:51 |
depth | 1 |
children | 0 |
last_payout | 2021-06-16 16:06:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 13 |
author_reputation | 294,997,802,391,230 |
root_title | "Playing around with Physics - GM:S 2 build in engine" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 104,232,668 |
net_rshares | 0 |
<div class="pull-left">https://cdn.steemitimages.com/DQmTAn3c753LR7bHCLPo96g9UvRMaPFwaMYn8VQZa85xczC/discovery_logo_colore%20-%20Copia.png</div><br> This post was shared and voted inside the discord by the curators team of <a href="https://discord.gg/cMMp943"> discovery-it</a> <br>Join our community! <a href = "https://hive.blog/trending/hive-193212"> hive-193212</a><br>Discovery-it is also a Witness, vote for us <a href = "https://hivesigner.com/sign/account-witness-vote?witness=discovery-it&approve=true"> here</a> <br>Delegate to us for passive income. Check our <a href = "https://hive.blog/hive-193212/@discovery-it/delegations-program-80-fee-back"> 80% fee-back Program</a> <hr>
author | discovery-it |
---|---|
permlink | re-mproxima-fl9c7ci69x |
category | hive-176981 |
json_metadata | "{"app": "beem/0.24.19"}" |
created | 2021-06-09 16:07:12 |
last_update | 2021-06-09 16:07:12 |
depth | 1 |
children | 0 |
last_payout | 2021-06-16 16:07:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 690 |
author_reputation | 67,497,022,794,666 |
root_title | "Playing around with Physics - GM:S 2 build in engine" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 104,232,671 |
net_rshares | 0 |
Physics can be a trick thing from my understanding. Outside of a couple of strange bugs regarding it that I’ve dealt in my own game I tend to stay away from it. Glad you are having some fun and learning.
author | enjar |
---|---|
permlink | re-mproxima-qubc8d |
category | hive-176981 |
json_metadata | {"tags":["hive-176981"],"app":"peakd/2021.05.5"} |
created | 2021-06-07 03:55:27 |
last_update | 2021-06-07 03:55:27 |
depth | 1 |
children | 2 |
last_payout | 2021-06-14 03:55:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 206 |
author_reputation | 1,194,220,951,992,707 |
root_title | "Playing around with Physics - GM:S 2 build in engine" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 104,179,329 |
net_rshares | 13,235,179,300 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
mproxima | 0 | 13,235,179,300 | 100% |
Yeah I think for a one man project like yours, rpg nonetheless is best. In all my previus games I stayed far away from lifelike physic interaction cause the take the development into a whole other direction. Now I'm thinking about a small game using them because it would be a lot more working around situations that are really easy to take without accurate physics.
author | mproxima |
---|---|
permlink | re-enjar-quco2g |
category | hive-176981 |
json_metadata | {"tags":["hive-176981"],"app":"peakd/2021.05.5"} |
created | 2021-06-07 21:08:42 |
last_update | 2021-06-07 21:08:42 |
depth | 2 |
children | 0 |
last_payout | 2021-06-14 21:08:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 366 |
author_reputation | 35,190,365,212,225 |
root_title | "Playing around with Physics - GM:S 2 build in engine" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 104,195,596 |
net_rshares | 0 |
I meant complex instead of accurate.
author | mproxima |
---|---|
permlink | re-enjar-quco3y |
category | hive-176981 |
json_metadata | {"tags":["hive-176981"],"app":"peakd/2021.05.5"} |
created | 2021-06-07 21:09:36 |
last_update | 2021-06-07 21:09:36 |
depth | 2 |
children | 0 |
last_payout | 2021-06-14 21:09:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 36 |
author_reputation | 35,190,365,212,225 |
root_title | "Playing around with Physics - GM:S 2 build in engine" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 104,195,605 |
net_rshares | 0 |
Congratulations @mproxima! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) : <table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@mproxima/upvotes.png?202106091347"></td><td>You distributed more than 49000 upvotes.<br>Your next target is to reach 50000 upvotes.</td></tr> </table> <sub>_You can view your badges on [your board](https://hivebuzz.me/@mproxima) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>
author | hivebuzz |
---|---|
permlink | hivebuzz-notify-mproxima-20210609t141205000z |
category | hive-176981 |
json_metadata | {"image":["http://hivebuzz.me/notify.t6.png"]} |
created | 2021-06-09 14:12:03 |
last_update | 2021-06-09 14:12:03 |
depth | 1 |
children | 0 |
last_payout | 2021-06-16 14:12:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 634 |
author_reputation | 369,400,771,956,148 |
root_title | "Playing around with Physics - GM:S 2 build in engine" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 104,230,726 |
net_rshares | 0 |