EzekielRage's Forum Posts

  • I used that file from the latest zip (php7) and it does not work. Apparently I am not the only one having this problem as the latest comment on that also seems to be the same issue. I can read the table just fine, but uploading doesn't work. It did work with the previous game using mysql 5.5 so I am pretty sure it is something with the database. But I can't figure out what...

  • hi,

    so i created online highscores a while back for a game using this tutorial:

    construct.net/en/tutorials/creating-own-leaderboard-1032/page-3

    everything works perfectly fine.

    so recently i wanted to do another game with online highscores.

    so i copypaste the php from earlier and changed the required values. test it - doesn't work. now i am stumped.

    PLEASE READ:

    I created a new database, this time it uses mysq l5.7 instad of 5.5 - cant change that, server-side thing

    i changed all the values correctly. no error on that end

    the new database is an exact copy of the old one for testing

    i used the new php to upload scores to the old one to see if it works. it does. so neither the game code nor the PHP is not at fault here

    i can read the tables just fine, the scores are displayed as they should. the problem is the upload part. i made sure to get all the values and php right - as said, if i use the new code to upload to the old scores it works fine.

    so here's my problem: did the syntax change a lot from sql5.5 to 5.7? if so, how do i need to reflect the changes in my code?

    as said the old game, where everything works fine, used a 5.5 version, the new one 5.7 and that is the only difference between the two. it either is that or something so obvious I can't help but miss it.

    any ideas?

  • just olsved it, thanks.

    it works with project files folder but you have to import all files you want to open into the capx as once you compile it to an exe the files are locked and you cant just copypaste the files to where the index.html used to be. so yeah, thanks^^

  • I already did, didn't work, at least not with NW.js preview mode. perhaps i need to publish it first?

  • I feel like I already asked this but I can't find my topic so here I go again...

    I am trying to make a launcher in C2 and use NW.js to run external applications.

    That works well. Now I want to add a relative path because isntall directoris. Basically I want to tell the launcher the app you are looking for is in the same folder as the launcher.

    Any advice?^^

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • Nevermind, i solved it with DISTANCE

    thanks, tho^^

  • hi,

    i am trying to do a thing where the player has a grappling hook he can move up and down on.

    so all of that works. now i want to implement the rope so that it looks nice.

    i used to have this code in a game where a spider climbs up and down its own web and the string of silk would change height depending on the spider location but i dont have the plugin required to open the project anymore, which annoys me that we cant open it without plugins but okay, whatever.

    either way, can somebody tell me how to do that again? basically i want one end of the tiled background to be pinned to the object the grappling hook has grappled to and the other end pinned to the player and when the player moves up and down the height would change^^

  • you sir, are a saint!

    thank you kindly, this is more than i could have hoped for :)

    many, many thanks!

  • I tried that but it always gives me so i think i did something wrong.

    basically what i want to do is put them into global variables and check them with each other to determine a random player being the traitor.

    like, one player who has the first set of numbers between 1 and 6, the second nmber between 7 and 12 and the third number between 13 and 21 is the traitor. so i figure read all numbers into global variables and make a comparison. but i cant set the global variable...

  • Thank you for fixing this, but now I have anotehr problem: How do I access those values now? As in, How can I put those values into global variables or something like that?

    EzekielRage

    *too dumb (just kidding - my wife is a teacher and I am a terrible speller so I get corrected a lot)

    rather than searching every time to see if a "card" has already been picked, it is easier to make a source array with all the available numbers (cards) in it, and delete each one out of the source array as it is dealt to a player...

    https://www.rieperts.com/games/forum/Deal21Cards.capx

    the SourceDeck is a one dimensional array - with 21 places in it to hold a number.

    the PlayerDeck is a two dimensional array that has 7 rows with 3 columns

    so, the players (x axis) are numbered 0 to 6, and each one has three (y axis) spots for a card number.

    the first players cards are (0,0), (0,1) and (0,2)

    second players cards are (1,0), (1,1) and (1,2)

    etc...

  • i was apparently too dumb/tired to type as well :)

    many many thanks, this is exactly what i was hoping for. you have done me a kindness :)

    thank you very much for your great help :)

  • hi,

    so i am new to arrays and i can't wrap my head around them because apparently i am to dumb or something.

    either way, what i want is simple, but perhaps i am thinking too complicated.

    i want an array that assigns three random, non repeating numbers to seven rows. i got it to work so that each of the seven gets ONE number, but i fail at giving them three numbers.

    the idea is it to set up a cluedo style clue sheet. if you ever played cluedo you know what i mean. six players plus one murder get a set of cards each from a pool of 21 cards, so thats three cards per player plus three murder cards. and then you have to cross reference to find out what the murder cards are.

    i am not trying to make a cluedo game, i am just trying to get the engine to assign the random cards, in this case numbers, to the seven card holders.

    here is the capx of my test:

    dropbox.com/s/k6cxl60gzcnmpxl/test2.capx

    if you could help me in any way, shape or form to get this to dowhat i want, that would be great^^

  • Before I go, I can tell you the issue happens in 260 but not 259 so I assume it has something to do with the change to the platform behavior you fixed, with player running into walls as you put it^^ And now I'm out, thanks^^

  • No account, not registering for a bug that will eventually get fixed anyway. Somebody's bound to find it, I can wait.

    The movement issue I originally talked about is player movement, I suspect a problem with support for visual studio, maybe I need to downgrade or upgrade or something. Since I can't fix that issue (seeing how it runs perfectly on edge, chrome, NW and co) I also don't need a sound fix, obviously, what good is nice music if you can't play the game^^