@antixrrraptor sorry I just posted the code above, now that you pointed this I need to redo how I move the player. I will have another look at iforce tutorials and will let you know. My code above makes no sense but strangely it works fine.
Thank you antixrrraptor
EDIT: I have tested with this code (game loop):<pre class="CodeBlock">
With no luck the dynamic bodies still interpenetrate.
PS: don't look at the naming of my variables I am just testing PS2: It's been days I am trying to figure this out, in my case I wanted to have some rocks fall on the player and on the ground. When the rocks have finished hurting the player and then lay on the ground I wanted the player to be able to walk over them (that was the idea). PS3: that's weird box2d behavior, isn't it? PS4: will try to post on the box2d github
I am planning to do a yt tutorial in french? God's willing.
Viva Gideros Gideros rocks
months later, I have started my french yt tutorial I found an easy way to come up with level building, I mean an infinite source of inspiration for level building (just mute the video)
added: - mobile controls (oleg) - tnt particle engine (gregbug) to test but it is lagging the game (html5, windows is ok) - screen shake (camera by rrraptor)
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
added: - mobile controls (oleg) - tnt particle engine (gregbug) to test but it is lagging the game (html5, windows is ok) - screen shake (camera by rrraptor)
thank you oleg for the feedback, updated with your suggestion self.img:setRotation(math.sin(e.time*4)*16)
I need your help please What is missing before I start writing my gdoc for it (please keep in mind it is beginner oriented)? Do I need to add: - a parallax background? - bg music (on its way ) - more enemies? - a boss? - another level? - more advanced "ai"? - ...?
Or have I covered the basics and should let the people do the missing stuff?
I think that the control buttons 'IJKL' are not very convenient. -Because control depends on which language is enabled on the computer -On non-gaming keyboards there is a restriction on pressing several keys with letters at the same time -'IJKL' keys are not intuitive
**It is better to do arrow control or WASD (But it should be provided that it works in different languages and not only in English ..)
*** I also had problems with jumping - he jumps very low
thanks oleg, you can use arrow keys too (on my computer it doesn't work so well because of key ghosting https://forum.gideros.rocks/discussion/comment/62950/#Comment_62950). IJKL is for french (and maybe other keyboards). I will add WASD which is not convenient at all on a french keyboard. I don't have any gamepad so I cannot test it yet
Jumping is a bit tricky because it's a question of feeling, I will try to make it better.
Updated (with higher jumps) beware jump away from a wall not close to a wall! Thank you mister oleg
azerty vs qwerty vs qwertz vs ... french is azerty
DID YOU KNOW? they picked qwerty for english keyboard because you can write TYPEWRITER using only the first row of the keyboard!
We are talking about different things, I'm not talking about binding to the letters of the alphabet but about binding to the keys.
In English 'WASD' and in Ukrainian it is 'CFIV' - the letters are different but the keys are the same ..
ps/ I do not know what the principle of the English keyboard, and the Ukrainian keyboard is made on the principle of frequency of letters in the Ukrainian language, those letters that are used more often -located closer to the center, those letters that are used less -located away from the center of the keyboard ..
In English 'WASD' and in Ukrainian it is 'CFIV' - the letters are different but the keys are the same ..
oh I misundertood, so in french that should be ZQSD, I use IJKL because of old times (amstrad CPC 6128 ), and maybe because I am left handed too, or I am not really sure why
You can shoot while climbing, but threre is no animation. You can stick to walls by pressing jump button as fast as possible. One way platforms give you jump boost for some reason.
thank you mister oleg I am not making a full game, the purpose is to make a written tutorial (my GDOC project ) then when it's done a YT tutorial based on it. Your link to the guide is quite amazing though
We need more gideros tutorials guys
So I will add some stuff to the WIP 2nd level, then I can start the Gideros Document, God's willing.
You can stick to walls by pressing jump button as fast as possible.
oh I forgot this bug and I am not really sure how to handle this one. Short explanations: every platforms (including moving platforms) are drawn as rectangle in Tiled. Then in code I add the rectangle plus 2 little rectangles on both sides (left and right) with friction 0. For a bottom rectangle it is more difficult
Other than that, do you think that is enough for a tutorial?
I don't know if this is enough. But I know for sure that the bugs need to be fixed first. And my 5 cents: replace the graphics, because the current one looks like a mess (there are many asset packs with everything you need).
thank you rrraptor for your honest feedback, much appreciated
box2d for platformers; there are some people for, some people against. After some attempts I feel more in the first group.
slopes may be very tricky (cf antix attempts using slopes with bump plugin), for example in the link you kindly provided it only deals with 45 degrees slopes!
the bug where you can stick to the moving platform is fixed
the bug when gaining speed when going through platforms is partially fixed
regarding gfx I agree, they are bad . Could you please check the gfx for the 2nd level?
Comments
Likes: MobAmuse
@antixrrraptor sorry I just posted the code above, now that you pointed this I need to redo how I move the player. I will have another look at iforce tutorials and will let you know.My code above makes no sense but strangely it works fine.
Thank you
antixrrraptorEDIT: I have tested with this code (game loop):<pre class="CodeBlock">
PS: don't look at the naming of my variables I am just testing
PS2: It's been days I am trying to figure this out, in my case I wanted to have some rocks fall on the player and on the ground. When the rocks have finished hurting the player and then lay on the ground I wanted the player to be able to walk over them (that was the idea).
PS3: that's weird box2d behavior, isn't it?
PS4: will try to post on the box2d github
I found an easy way to come up with level building, I mean an infinite source of inspiration for level building (just mute the video)
peace
Likes: SinisterSoft
I tried everything I could but I am not able to make a fully fledge platformer using box2dhttps://mokatunprod.itch.io/gdoc-03-platformer
In this demo I implemented double jump and pass through platforms
but when you keep pressing up the player flies!!!I also have hard time with slopes and jumping... So much painI can make something nice out of it but I am afraid it would be so basic that it won't match modern platformers!
This is supposed to be my next game for my GDOCS project.
EDIT: I managed to make it acceptable
what do you think?
the previous background I had chosen was too complicated to make a level out of it. This time I have chosen a "fantasy ruins" style.
I need to add AI, mobile controls, more enemies, fx, ...
I need to fix some controls as well
It is still WIP.
- mobile controls (oleg)
- tnt particle engine (gregbug) to test but it is lagging the game (html5, windows is ok)
- screen shake (camera by rrraptor)
Still work in progress... https://mokatunprod.itch.io/gdoc-03-platformer
Likes: MoKaLux
https://deluxepixel.com
I can share the code I have so far, just tell me
Likes: oleg, SinisterSoft
Here is a piece of code from my game about a cat where elements of the game pulsated to the beat of the music:
Likes: MoKaLux
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
self.img:setRotation(math.sin(e.time*4)*16)
I need your help please
What is missing before I start writing my gdoc for it (please keep in mind it is beginner oriented)?
Do I need to add:
- a parallax background?
- bg music (on its way )- more enemies?
- a boss?
- another level?
- more advanced "ai"?
- ...?
Or have I covered the basics and should let the people do the missing stuff?
-Because control depends on which language is enabled on the computer
-On non-gaming keyboards there is a restriction on pressing several keys with letters at the same time
-'IJKL' keys are not intuitive
**It is better to do arrow control or WASD (But it should be provided that it works in different languages and not only in English ..)
*** I also had problems with jumping - he jumps very low
Likes: MoKaLux
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
I don't have any gamepad so I cannot test it yet
Jumping is a bit tricky because it's a question of feeling, I will try to make it better.
Updated (with higher jumps) beware jump away from a wall not close to a wall!
Thank you mister oleg
How is a French keyboard different from a regular one?
**I thought that all keyboards are the same, just the alphabet is different ..
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
DID YOU KNOW? they picked qwerty for english keyboard because you can write TYPEWRITER using only the first row of the keyboard!
In English 'WASD' and in Ukrainian it is 'CFIV' - the letters are different but the keys are the same ..
ps/ I do not know what the principle of the English keyboard, and the Ukrainian keyboard is made on the principle of frequency of letters in the Ukrainian language, those letters that are used more often -located closer to the center, those letters that are used less -located away from the center of the keyboard ..
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Likes: oleg
- flying enemies with ai
- a boss
- a full level
to do: polish and adjust controls and ...
https://mokatunprod.itch.io/gdoc-03-platformer
Hi. I don't know how your jumps are implemented, so I just want to share my jumping method - maybe this information will help you ..
Likes: MoKaLux
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
- menu
- level selection (2nd level WIP)
- better controls? (jump)
- new nmes
What do you think? What is missing?
Thank you
PS: I need to work my artistic side
I really like the guide to platform games from Scott Rogers - I think you will find it interesting.
http://mrbossdesign.blogspot.com/2008/10/platformer-primer.html
I liked it so much that I even once translated it into Ukrainian.
https://simartinfo.blogspot.com/2019/06/blog-post.html
Likes: MoKaLux
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
You can stick to walls by pressing jump button as fast as possible. One way platforms give you jump boost for some reason.
Likes: MoKaLux
I am not making a full game, the purpose is to make a written tutorial (my GDOC project ) then when it's done a YT tutorial based on it. Your link to the guide is quite amazing though
We need more gideros tutorials guys
So I will add some stuff to the WIP 2nd level, then I can start the Gideros Document, God's willing.
Viva Gideros
Some more bugs I found:
- the missiles for the spaceships are transparent!
- the boss can shoot himself!
- ...
Thank you very much commander rrraptor, much appreciated
Other than that, do you think that is enough for a tutorial?
PS: you know fine tuning is a never ending story
Here is a link where you can find some info about slopes:
https://gamedevelopment.tutsplus.com/tutorials/basic-2d-platformer-physics-part-8-slopes--cms-28704?_ga=2.82781717.2048936275.1629196040-389888950.1629196040
And full list:
https://tutsplus.com/authors/daniel-branicki?_ga=2.7277233.2048936275.1629196040-389888950.1629196040 I don't know if this is enough. But I know for sure that the bugs need to be fixed first.
And my 5 cents: replace the graphics, because the current one looks like a mess (there are many asset packs with everything you need).
Likes: MoKaLux
I am looking forward to making the yt tutorials