JHunter's Forum Posts

  • Not sure if the OP is still looking for an answer... I see posts from this month and I have the answer, so I am going to reply. Also for future reference, you should try google.

    You're looking for a trade name

    "A trade name is generally considered the name a business uses for advertising and sales purposes that is different from the legal name in its articles of incorporation or other organizing documents. A trade name can also be referred to as a “Fictitious Name” or a “Doing Business As” (DBA). Examples of trade names are the use of the name "Kodak" by the company whose legal name is “Eastman Kodak Company” or “McDonald’s” by the company whose legal name is “McDonald's Corporation.” A trade name may not include Inc., LLC, Corp. or similar legal endings. Although a trade name may sometimes also be a trademark, a trade name is not, in itself, a form of intellectual property."

    From - http://www.invention-protection.com/ip/publications/docs/Legal_Name_Trade_Name_Trademark.html

  • My app published in about 2-3 hours on the 20th and was available immediately. I submitted an update a little over 24 hours ago and even though the console says it is live, it is not in the play store. There is a subreddit of others experiencing the same issue. Some reporting over 24 hours and nothing, some reporting it took them about 30 hours before they seen the results.

    From the replies I have been receiving from other developers the store usually takes 4 hours tops before results are seen. Sometimes as quick as 30 minutes. I believe it's not normal. My guess is it's tied to the Dyn DDOS, but that's purely speculation. Either way, google play is clearly experiencing some issues. Our only choice is to wait it out I suppose. I tried their support center but have received no reply.

  • My website uses wordpress, to which I have a database setup for the user information (Username, Passwords, Emails, etc). For the application I am developing, I have a PHP file that compares Username and Password information sent via a AJAX Post from my app, to the wordpress user information database. Basically what happens is VIA the application the user enters a username and password, a API key is generated and sent to the PHP file. The file compares the api key and then the password and username information. If everything is valid, it returns the username via Ajax.LastData which my game uses for leaderboard updates.

    My question about security is for the password being sent via the Ajax post method. I've thought about hashing the password with a salt and comparing it to the salted password of the wordpress database, but this does not seem as secure as it sounds. I was wondering how I would go about using SSL (as I believe this is the fix for my problem) or some other method to really secure the password that is being sent. I originally wanted to have the user log into the website on the device they are playing on, and have a php script check if they are logged in so I wouldn't need to send the password via Ajax, but I didn't know how to do this so I went with the above mentioned method.

    I own a hostgator account, have a good understanding/knowledge though I am still a bit of a beginner (learning from a friend who knows a decent amount of this stuff, but is unfamiliar with construct 2). Any help would be appreciated!

  • Well using local storage to save the progress will be local data on the device. As far as I know the stored data is encrypted so you won't be able to edit values or anything hacky. In-app purchases will be saved on the user's account for the relevant store.

    Thank you

  • I am having some trouble finding in-depth explanations on the save features of construct 2. I read alot about webstorage, but found out webstorage is no longer a thing.

    My problem is this. I want to save the players in-game score, and save their IAP's. Essentially the IAP are going to be a premium currency which can be used to buy a new character. This premium currency can also be obtained through playing the game and watching an ad. I want to know how to securely save this value as I fear hacking could be somewhat easy using the local storage, but I am not entirely sure how it works.

    Any input would be appreciated.

  • run blackhornet 's capx and just work your way through it - this works as expected (nice pulse effect by the way)

    If you are calling a function in your code then you may need to tell the function which enemy is expected to fire...

    firstly try re-writing to not use a function and see if it works...

    I don't understand... I deleted what I had and put it back in exactly as I had already copied blackhornets code exactly and it works now... I'll chop it up to me not paying attention to something, perhaps maybe it was the function. Either way gentlemen I am in some serious gratitude, thank you so unbelievably much!!

    Have a good night!

  • From the Top-down Shooter template. Give Enemy an InRange boolean and the Timer behavior. Event 9 sets up the behaviour, by distance. Event 13 does the attack.

    http://www.blackhornettechnologies.com/ ... r_BHT.capx

    I copied the code exactly but it offers the same issue as Every X Seconds does. It takes the lowest timer time of both the enemies and only one of their damage gets subtracted from the health at a time. You need to kill enemy A for enemy B to attack.

    Anyway to sort this out?

  • You should use the Timer behaviour instead. It times each instance. Every X seconds is a global mechanism.

    I've tried to implement the timer behaviour and I failed... Any quick tips on how I should organize it?

  • I am having a slight issue. I have code that tests for two objects distance, Enemy and Player. If Enemy is within the distance of the Player to be able to attack I have the code set to Every X Seconds, X being the Enemies Agility Variable, call upon the attack function. The problem is this only works for which ever enemy my player walks into range of first. If I am surrounded by more then 1 enemy their Every X Second commands do not work until the first is destroyed. As this would be ok in a turn based game, I need help making it so it will run it independently, so I can be in range of various Enemy objects with different times and have it all work together.

    The code I have right now is

    distance(enemy.x,enemy.y,player.x,player.y) <= 800

    -- Every Enemy.AGILITY seconds:: Call Attack Function

    Thanks in advance guys!

    (Side Note. I have tried the For Each condition hoping that would work, however it did not... Perhaps I am using it wrong?)

  • > Well, I figured out the issue with it not working past 4, instead of up to 8 you need to go 0-4 then -1 through -4. However, can you still explain to me the most efficient way at layer these events? Be is per tick, or... How?

    >

    > Thank you by the way guys for the help so far

    >

    Sorry for that, I wasn't aware the angle(x1,y1,x2,y2) gave negative values..

    If you have more than 1 enemy, I guess this would do:

    for each enemy

    distance(enemy.x,enemy.y,player.x,player.y) < 100

    -- instance variable = 0

    > set animation ...

    --instance variable = 1

    > set animation ...

    where -- are subevents..

    It all works! Thank you so much. Unless you have a better idea to handle sprites facing the players object, that will be all!

  • Well, I figured out the issue with it not working past 4, instead of up to 8 you need to go 0-4 then -1 through -4. However, can you still explain to me the most efficient way at layer these events? Be is per tick, or... How?

    Thank you by the way guys for the help so far

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • >

    > > There are many ways to go about it but... for the most basic way:

    > >

    > > What I would do is get the angle from the npc to the player.

    > >

    > > You can then set the npc frame to round(angle/45). Set frame 0 to be facing east, frame 1 to be facing south east and so on.

    > >

    > > Does this make any sense?

    > >

    >

    > Quick code insight, range is a circle sprite pinned to my player object. I use it to detect range as line of sight is useless ^_^

    >

    > Here is what I have done http://i.imgur.com/q9AVqRr.png and honestly it is the only way I can think of to actually get this to work. I'm useless when it comes to angles honestly. It works until I added in the part about playing animations, it will not play the animations in the section I highlighted in red... Also if I add in another enemy object only one of them will update. I will need it to update with multiple...

    >

    > Can anyone offer insight please? Or perhaps tell me what I am doing wrong.. Any help is greatly appreciated.

    >

    > Thanks in advance!

    >

    Ruskul gave you a great answer..

    set a variable on your enemy to round(angle(enemy.x,enemy.y,player.x,player.y)/45)

    if this variable is 0 or 8 set animation to east

    1 = southeast

    2 = south

    and so on..

    instead of your detection sprite you could check the distance between your enemy and player with distance(enemy.x,enemy.y,player.x,player.y)

    I didn't know it was an answer to my problem. But I have a couple questions, again I am new sorry. I set a variable to round(angle(enemy.x,enemy.y,player.x,player.y)/45) but how exactly do I set the rest up? Do I use:

    Each Tick:

    use distance(enemy.x,enemy.y,player.x,player.y) to determine distance

    If within distance use round(angle(enemy.x,enemy.y,player.x,player.y)/45) to get the angle

    then a big if statement with all the individual possible outcomes?

    I have also run into the same problem as before, NE, N, NW do not work

  • There are many ways to go about it but... for the most basic way:

    What I would do is get the angle from the npc to the player.

    You can then set the npc frame to round(angle/45). Set frame 0 to be facing east, frame 1 to be facing south east and so on.

    Does this make any sense?

    Quick code insight, range is a circle sprite pinned to my player object. I use it to detect range as line of sight is useless ^_^

    Here is what I have done http://i.imgur.com/q9AVqRr.png and honestly it is the only way I can think of to actually get this to work. I'm useless when it comes to angles honestly. It works until I added in the part about playing animations, it will not play the animations in the section I highlighted in red... Also if I add in another enemy object only one of them will update. I will need it to update with multiple...

    Can anyone offer insight please? Or perhaps tell me what I am doing wrong.. Any help is greatly appreciated.

    Thanks in advance!

  • I need help with code. Basically, I want to be able to walk my player around a NPC and have the NPC's frame switch to match where my player is walking.

    For Example: Player moves to the Right of NPC, NPC's frame switches to the picture of the NPC facing right.

    I have pictures of the NPC facing in the 8 directions. N, NE, E, SE, S, SW, W, NW. I have messed around with angles, and the clockwise code but I just cannot get it to work. I thought I would ask the community as I am sure someone knows how to get this to work.

    Thanks in advance!

  • I'm not sure if bumping is allowed.. But it's been a day and a bit. Does anyone know?