@ALUCARD I’m sorry about that. I wasn’t mad; it’s just that I primarily focused my attention on the world-building part of game-making. I used Gdevelope before this game-making software, which used a different form of coding.
The great thing about javascript is that its not actually a language itself. Javascript is actually just english with a different sentence structure. When I figured that out it wasnt that bad. Currently I work on scripts that look like this ALUCARDS LETHAL MUNITIONS EXPO | Code Editor
you made my day!
Lo siento, pera yo no hablo ingles. (yes I do, it is my main language)
I consider myself to be a mostly decent javascript coder by now, but I think this is a bit complex for me.
@mvaligursky, hello, could you help me with coding a future in my game?
plz
@Linkplayer can you help me with the mining code?
I thought I already added it, was it deleted?
it wasn’t there at all
and do you know how to make something appear where something thing disappears?
Or perhaps “javascript is just english with a computer accent”
you need to use a completely different entity to make a disabled entity become re-enabled
@mvaligursky could you help me with Minecraft like mining code?
Please do not ping people directly. People check the forum in their time, and help when they can.
Can you explain exactly what you are looking for?
Wdym by “code a future”
??? and I wanted to add a mining system that’s similar to Minecraft
You already said that. I need you to be far more specific.
I know that if you want block placing similar to minecraft thats actually not that hard:
Cast a ray from the camera to the middle of the screen
Place an entity at the result point
Move the entity 0.5 away from the normal
Activate a trigger on the entity to check if the player is in the way
If the player is not then clone and place a specified block
Remember to round the block to the nearest whole number otherwise it may be slightly misaligned
Removing blocks like minecraft should actually be easier
Cast a ray from the camera to the middle of the screen
If it hits an entity with a specific name start a timer with some damage multiplier based off of the name
Copy the entity id and constantly check to make sure it stays the same (this prevents the player from mining one type of block then looking at another block and continuing to mine)
When the timer is finished destroy the block and add to a global variable
It would take me like maybe an hour to code all of this.
cant code
Then how are you going to be a game developer? Furthermore, why are you on these forums anyway? You ask how to do something, I explain exactly how to do it, and I just get “cant code” in response. If you cant code then what are you looking for here? Do you want someone to enter your project and do everything for you exactly how you want them to because you cant? Thats not a viable development method whatsoever.
just because you think that I want to have everything done for me which I do not doesn’t mean I do and I am paying the people who are helping me out