GeorgeZaharia's Forum Posts

  • I use two sets of animations for my playersprite. One set for walking/jumping/falling/standing/dying when facing right and one set for facing left. [/img]

    Does anyone have any idea what I'm doing wrong?

    instead of using 2 sides for each animation why you dont use the sprite mirror expression? if turned on automatically flips ur sprite to left ... u will have less images and less headaches.

    so u will only need to trigger it once... (ie. A or <- arrow is pressed mirror sprite if D or -> arrow is pressed set not mirrored ) and there is no need to adjust animation speed based on the orientation cause C2 automatically uses the right facing calculation in reverse. Cheers hope it helps u.

  • Hi everyones,

    if anyones that have published on FB Instant Games could share this info with the comunity would be nice.

    How profitable are ads on Instant Games?

    same as any other platform 0.25-5$ per 1000 impressions or clicks. (depends on advertisers pricing that show ads trough your app, if their budget is low then you get low income if their budget is high then u get high income. also depends on ur audience country and so on... same as any other platform, but i wouldn't look at it as a quick cash thing...as none of advertising companies pays a lot u get pennies on 1$ no matter what platform ur using... just look at it as another place to add ur game to, and gain community, developer reputation and so on. ) You can choose what type of fillrate your advert placement has, and how much is going to pay, but having low fillrate with high payment is as good as having low CPM but 100% fillrate.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • you can also make a global variable and add all your results you want in 1 number string.(ie. Totalscore=(LEVEL1Value(gems+score+etc))+(LEVEL2Value(gems+score+etc))+(LEVEL3Value(gems+score+etc))+etc) However that is working if you already have ur level 1 figured out or saved in a similar matter.

  • Imagine if we had the power to just quickly insert an OR there and save time and duplicate events! Mockup:

    From 8 events to 4, and it was quick and simple, awesome!

    while OR wont work like that cause is impossible of its current state as category of expression you can lower your events and remove duplicated events by doing the following:

    Image

    the first its not half of 8 but still saves 25% / while the second is as powerful as your suggestion... therefore wont be changed... because is already possible what i love about C2/C3 is that you can use it as you want, as long as your using your imagination. (i do think the suggestion ur making would make life easier for majority of people though since the math thingy will confuse most of them +1 from me also, but i doubt would be something that would be taken in consideration as important)

    Edit: i modified a bit the post so if you seen the (a+b)=5 just refresh the page... was some stupid thing i did ... however tunepunk & dop2000 solution is better, since uses C2/C3 system expressions as are intended to be used in this type of cases.

  • If you have player profile pics, is there a way a player can add their own profile pics into the game (doesn't seem to be a tutorial on this)

    you can but i think is only available for desktop only trough the NW.js plugin not sure for mobile... for mobile i know you can load a sprite from a url... that might work... you can also use the profile picture of a Facebook user if i remember correctly... or twitter. there are no tutorials cause they are explained in the manual i think.

    I have a similar question -

    Say I want to reward players for playing my game every day. On day #1 I give them 5 coins, on day #2 I give 10 coins and so on.

    I guess some users may try to cheat this system by changing the date on their phone.

    Should I bother trying to prevent this, maybe checking some Internet clock server?

    you can prevent that by saving the users current date and time off closing the app or logged in the app and approximate the time when he logs back in, if he comes after 30 minutes with date saying 1 days later ur server should compare actual passed time and not reward nothing. thats should be a relative easy time exploit patch to do with a bit of sql database and C2.

    but what the OP said was a bit more difficult, cause he was talking about the API of 3rd parties and stuff... which usually are pretty secure, unless they have some bug in a version and leave open a security issue in your app, and you cant do nothing about it unless you update the api to the next version that is patched or older one that doesn't have the issue, with the risk of loosing some of the features in your app.

    sorry for zombifying the post. read to late the date .... of initial poster...

  • nvm i manage to do it.

    but if i change the global variable to number it will not be read by txt object.

    would have upload the capx but i cant

    dont have yet 500 rep

    if you want to show a text as number you can use i think str(valuenumber) and read it as a text or int(textglobalvariable) and read it as a number, someone corect me if im wrong. but i know one of those things turn a text into a number and viceversa. however if you have like johndoe:123 why are you adding that data in 1 variable? and not just use 2 variables 1 for text and 1 for numbers and use '&' to make them appear or use them as calculations data calls etc (ie. variabletext&variablenumber)

    [quote:14yw424w]int(x)

    Convert the float or text x to an integer (whole number). If x is text, non-numeric characters are allowed after the number, but not before. For example int("33xx") returns 33, but int("xx33") returns 0.

    [quote:14yw424w]

    str(x)

    Convert the integer or float x to a string. Generally not necessary since strings can be built using the & operator, e.g. "Your score is " & score

    manual

    you can upload a file to your google drive and post it here without https://www and without the '.' <- dotcom etc...

  • All tiles uploaded.

    Around 100 uniques, 300 total with the color variants for background purposes. 32x32, 32x16, 16x16, 16x8 and 8x8 tiles, ordered from bigger to small ones.

    Download here: https://kronbits.itch.io/inca-game-assets

    Im a simple guy, seen good content shared it in the Romanian community <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy"> they love free stuff ....

  • > Hi guys

    >

    > Any idea why I'm getting this message? Everything was fine with uploading until last night ...

    >

    > "The content you requested cannot be displayed right now. It may be temporarily unavailable, the link you clicked on may have expired, or you may not have permission to view this page."

    >

    > Thanks in advance!

    >

    Getting the same error here trying to upload my 9th game. Was working fine until last night here as well. So it should be an issue on facebooks side.

    change the name to something simple like 'rev412018' if the uploaded file fails to be processed.

    if the game was published and link is unavailable check ur webhosting links and instant games links... the platform is in development so it might face changes of hosting etc have patience.

  • > But looks like Facebook isn't reviewing any apps at the moment. I've seen this message for a few days:

    >

    >

    > Is everyone else seeing this?

    >

    I've seem it yesterday.

    The first game I sent to review was 10 days ago and did not get reviewed yet.

    its been like that for the past month since the Trump data leech... they stopped all apps that request user information's, and they are changing the way you get personal information's, so no more access to peoples profile info, email and all that without telling them for what it is. which bunch of app developers are abusing and not saying entire reasons. i say it was the time for a change, to many apps and little games that requests my contact information when i install them, or my location even though they dont use those features in-game, google app store has same issue, but i think their submission is opened.

    also they are working on instant game sdk and platform itself, is a new different feature than the facebook games page and is not yet ready to use fully... is a bit confusing, and Apple is forcing them to force developers to buy/provide a apple license ID to publish so the quality/data breach doesn't happen on ios devices while you play a facebook game, and needs to be apple vetted.

  • Check this tutorial Example Animation.c3p its C3 but u can read it using C3 free version and implement same controls and behaviors inside C2.

    just head over to https://editor.construct.net/ and click "file" and select the example above after you downloaded it.

    if you cant open the file use https://editor.construct.net/r94-2/

  • There is many templates in store they are don't work. Please see:

    https://www.scirra.com/store/royalty-fr ... asure-4024

    All templates with description "Complete game to post on Google Play" doesn't work.

    the users might of removed them or they are not anymore live for sale.

  • exedys Just to be sure, did you checked the "loop" property of the animation?

    your problem is that you trigger the animation on a loop when you keep pressed the button, therefore the animation when you keep button down is always going to play from 1st frame, rendering the visual aspect to the 1st frame as it wont move. you need to trigger the animation with a condition trigger one time & button is down.> play animation

    in the last picture u showed remove the OR trigger once... that is already applied to the On button pressed condition which triggers only 1 time.

    from the 1st picture put the Animation run 1st then the 8 direction simulation lasts, and swap the condition for animation play to 8 direction is simulating control left up down right.

    Edited(31/3/2018/ 6:15 pm Romania time):

    For left and right movement you can code the frame animation to change +1 frame every 0.2 seconds or 0.1 second as the button is kept down, and when frame = ur max frames in the animation just reset the animation to 1st frame again.

    while the system of animation is simple by itself its a bit confusing when ur trying to play animations based on how long users keep the buttons down or not.

    You also do not need to have 2 sets of when buttons is pressed....

    il make u a C3 example using some color blox ul be able to implement it in ur game it will take a bit .... probably few hrs from this edit time

  • can you please give me hint to create it ?

    easiest way to create a parallax bg is to use bullet behavior on your tilebg give it a 40 speed or 20 set movement angle to 90 on start of layout. (tilebg needs to have double screen size when you place it that means is going to see 2 times the length of screen outside and be seamless), set tilebg origin point to down center.

    once you done the above create a condition : tilebackground y >= self.height set Y to 0

    and thats it. you will have to tweak around the speed and background size till it works for your screen size/screen speed.