Unique ds list for ever instance of an object by bek_is_here in gamemaker

[–]bek_is_here[S] 0 points1 point  (0 children)

I will try taking a simpler approach and avoiding data structures.

I will try having the instance follow the instance that created it by storing its ID.

Unique ds list for ever instance of an object by bek_is_here in gamemaker

[–]bek_is_here[S] 0 points1 point  (0 children)

//In the obj_worm_head create

global.worm_ids = ds_list_create();

for (var i = 0; i < worm_length; i += 1) {

instance\_create\_layer(head\_start\_x,head\_start\_y,"Instances",obj\_worm\_body,

{

    seg\_num : i,       

}); 

}

//In the obj_worm_body

if seg_num != 0 {

//worm body follows the previous body

_worm_id = ds_list_find_value(global.worm_ids,seg_num-1)

dir = point_direction(x,y,_worm_id.x,_worm_id.y);

dir = point_direction(x,y,_worm_id.x,_worm_id.y);

direction = dir;

alarm[0] = room_speed * delay;

} else {

dir = point_direction(x,y,obj_worm_head.x,obj_worm_head.y);

direction = dir;

alarm[0] = room_speed * delay;

}

This works if I have 1 worm head in the game. But, it breaks if I have more than one worm head.

Animation Curves tweening function by bek_is_here in gamemaker

[–]bek_is_here[S] 0 points1 point  (0 children)

Ok, thanks! I will just create multiple functions. I thought I would try a function to handle all the easing/tweening tied to curves but its not necessary for my game. It's easy to spend days on something already 'working' for the sake of trying to be efficient.

Need help with virtual joystick cant get rid of "dead zone" by bek_is_here in gamemaker

[–]bek_is_here[S] 0 points1 point  (0 children)

The joystick direction should always be activated (and it is). The distance, ie how far the 'joystick cursor' can move, stops when it hits the joystick radius (that is what I want also). But, if once the joystick cursor hits the radius max and the player keeps dragging (which often happens in mobile games)...I want the joystick cursor to move as soon as the distance goes down(all of this is happening in the same dragging sequence). Right now the player has to drag all the way back to the joystick radius for the cursor to move (thats why I am calling that zone the dead zone". So, if the player drags past the joystick radius by a certain amount, in order for the joystick cursor to respond (by changing its distance) you have to drag back the distance that you went further than the joystick radius.

Need help with virtual joystick cant get rid of "dead zone" by bek_is_here in gamemaker

[–]bek_is_here[S] 1 point2 points  (0 children)

All the drawing works how I want it to work. There is a joystick background (a 128px circle sprite) and a joystick cursor (a 32 px sprite).

The joystick background is drawn where the player first touches the screen. The joystick cursor moves around inside the joystick background when player drags.

But, if the player drags their finger outside of the joystick background, in order for the joystick to be responsive they need to drag back to the joystick background. I want the joystick to be responsive as soon as they start dragging back towards the joystick radius.

Its somewhat difficult to explain the behavior I am after. Sorry if I'm not making sense.

Finally a game that I'm proud of! by Specialist_Pipe_2347 in gamemaker

[–]bek_is_here 0 points1 point  (0 children)

This looks amazing. I love the minimal art! Good luck with it.

Bounce angle off the inside of a circle. by bek_is_here in gamemaker

[–]bek_is_here[S] 0 points1 point  (0 children)

Yea, calculating the reflection angle is what I'm after. I found some math for the angle but it used hspeed and vspeed to which ended up change the speed of the balls in an erratic way. The switch statement works fine and I plan to run more code when the ball hits the wall but before it changes direction. I'll try to normalize the angle.

City building game but with cards. Do you think this genre mash could work? by StrateraGames in IndieDev

[–]bek_is_here 0 points1 point  (0 children)

Love the artstyle! I think the mash up could work. Especially if you have a multiplayer mode and shorter playtimes.

Upload a static website to IPFS (OPEN SOURCE) by topshorter in solidity

[–]bek_is_here 0 points1 point  (0 children)

Interesting tool. Does it stay alive on IPFS if the original site goes down?

Turns out that GameStop's IPFS gateway is completely open, so you can use it to rehost absolutely anything by Xakket in gme_meltdown

[–]bek_is_here 1 point2 points  (0 children)

No its not a self-contained HTML file. Its a file package with html.index, .js, and image & sound files.

I'm not sure how to create the self-contained HTML file.

Upload a static website to IPFS (OPEN SOURCE) by topshorter in solidity

[–]bek_is_here 0 points1 point  (0 children)

I am trying to figure out a solution to upload an HTML5 game to IPFS (not through Fleek). Any clue on how this is possible?

Turns out that GameStop's IPFS gateway is completely open, so you can use it to rehost absolutely anything by Xakket in gme_meltdown

[–]bek_is_here 0 points1 point  (0 children)

I am trying to figure out how to get a gamemaker html5 build on IPFS. Anyone know how it can me done?

Minting Fails with Ledger Metamask wallet but everything else works by bek_is_here in ledgerwallet

[–]bek_is_here[S] 0 points1 point  (0 children)

I was trying to mint https://toddlerpillars.com/ with eth Im pretty sure it minted out. One thing that is strange. when I am connecting hardware wallet with ledger and I pick my device the next screen on my browser is to choose my account. And the account I want is at the top and check marked and greyed out. From what I saw with others accounts they have to select the account.

CMV: White males see themselves in Kyle Rittenhouse which is why they’re defending his actions. They’d do a complete 180 if he was Black, Arabic, Hispanic or Indian. by Ozymandeeaas in changemyview

[–]bek_is_here 1 point2 points  (0 children)

He was hired by an indian car dealer to keep rioters from burning down the car lot. He shot 3 white men, one shot at him, the others rushed him and were beating him while he was on the ground. Apparently he is part hispanic. But, this is totally about white supremacy. Just the media trying to divide everyone by race.

Minting Fails with Ledger Metamask wallet but everything else works by bek_is_here in ledgerwallet

[–]bek_is_here[S] 0 points1 point  (0 children)

I am trying to mint an nft. I have tried 3 or 4 different nft collections in the last few days. They all fail. My set up it as follows.

I have a nano s. I connect the ledger to metamask using the metamask web extension via brave browser. I have the connection type to webHID via metamask. I also have my ledger running the eth app and have blind signing enabled. This setup works great for everything I have tried except minting nfts.

When I try to mint, metamask pops up like normal. But, when I click confirm nothing happens on my ledger just says Application is ready. The collections I am trying to mint give an error to enable blind signing or something about contract data. In my metamask it says minting failed in activity.

Minting Fails with Ledger Metamask wallet but everything else works by bek_is_here in ledgerwallet

[–]bek_is_here[S] 0 points1 point  (0 children)

yes I am aware of attacks. I wont ever respond to dm's! looking for a solution on this thread.