Re: I just, coding is hard, help me!

2019-06-21 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I just, coding is hard, help me!

About wall versus platform? Have the wall tiles always contain something.  For example Masons detection is always wall something, like walldirt.  The platforms on the other hand never contain that sequence of letters.  This way a reliable if statement can be written to distinguish walls from platforms.

URL: https://forum.audiogames.net/post/443295/#p443295




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: I just, coding is hard, help me!

2019-06-21 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector


  


Re: I just, coding is hard, help me!

See that's my issue, I'm just not possitive how I would go about that.

URL: https://forum.audiogames.net/post/443293/#p443293




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: I just, coding is hard, help me!

2019-06-21 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I just, coding is hard, help me!

You need to have a reliable way of detecting if there is a wall instead of a platform.  In your platform checking function, determine if it’s a wall or a platform. If it’s a wall, make players fall. Else, cause them to land.  Oddly enough, I never got that problem. I have written code that allows you to move in 3D, I just never ran into the issue.

URL: https://forum.audiogames.net/post/443282/#p443282




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: I just, coding is hard, help me!

2019-06-21 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector


  


Re: I just, coding is hard, help me!

Thanks for the help.It works!So I have another issue.When I'm jumping, and I hold an arrow against a wall, it plays the sound correctly, except it won't land. The reason for this is, I'm asuming, because it takes me into that tile, and then pushes me right back out, because I'm on a wall tile. But because of the way this landing code works, as soon as it sees a tile that isn't blank or nothing, it tries to land. Now I'm not quite sure why it keeps me afloat instead of just dropping me, but that's what I need your help with. I'd like to include if the gt string doesn't contain wall, it can land as well, but I'm not sure how to do that. Here's my code:
void platcheck()
{
if(ascending==false)
{
if(gt(me.x,me.y,me.z)!="")
{
jumping=false;
atapex=false;
descending=false;
p.play_stationary(""+gt(me.x,me.y,me.z)+"land"+random(1,3)+".ogg",false);
jumptimer.restart();
scpool.destroy_all();
stimer.restart();
scuff=true;
}
}}

URL: https://forum.audiogames.net/post/443279/#p443279




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: I just, coding is hard, help me!

2019-06-21 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector


  


Re: I just, coding is hard, help me!

I call the bmenu if the input_box's input comes out blank. So if you enter nothing in the box, it will go back to the menu. It's not fool proof but it's the best I got so that I don't do  spawn_tile(,dirt); At Charlie, you can circle your  code in  code, and /code, with brackets.  so it will show everything as if in  tags in html.

URL: https://forum.audiogames.net/post/443227/#p443227




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: I just, coding is hard, help me!

2019-06-21 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I just, coding is hard, help me!

Why do you call the bmenu function within itself?

URL: https://forum.audiogames.net/post/443222/#p443222




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: I just, coding is hard, help me!

2019-06-21 Thread AudioGames . net Forum — Developers room : cmerry via Audiogames-reflector


  


Re: I just, coding is hard, help me!

Hi.The way I'd personally do it is through an array, like so.Note that due to issues with the forum not liking braces, braces here are replaced with blank lines, brackets with spaces, since I couldn't think of a better way to do it.string[] tilelist;void main()tilelist.insert_last("grass");tilelist.insert_last("concrete");Then in your tiles menu, I'd do,for(uint i=0; im.add_item_tts(tiles i ,tiles i );

URL: https://forum.audiogames.net/post/443159/#p443159




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: I just, coding is hard, help me!

2019-06-20 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector


  


Re: I just, coding is hard, help me!

also, here is my tilelist string, maybe I could do this a bit better, I haven't thought of a good way: string tilelist="dirt
grass
";
string sourcelist="
"; Obviously no sources yet haha.It's supposed to put each line as a separate menu option, but I'm not sure if that will work yet haha.

URL: https://forum.audiogames.net/post/443134/#p443134




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: I just, coding is hard, help me!

2019-06-20 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector


  


Re: I just, coding is hard, help me!

also, here is my tilelist string, maybe I could do this a bit better, I haven't thought of a good way: string tilelist="dirt";
string sourcelist="
"; Obviously no sources yet haha.

URL: https://forum.audiogames.net/post/443134/#p443134




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector