Ribis's Recent Forum Activity

  • scirra.com/forum/found-solution-for-seams_t93983

    it has to do with sub pixel rendering vs integer gpu rendering.

    so, what I can do it? I read the topic but I don't really understand how fix the problem, I tried a lot of combination (this night I will try another things... now I don't have my project with me)

    if I disable the webGL I can see a seams, but with the webGL the performance will be fewer like 20 fps...

    why in CocoonJS the webGL make this problem? I should contact ludei?

    It's very important the fps, because when the fps is 40/35 you can see a lot of lag...

    so only way to use Scale Outer + Linear Sampling and TileMap without seams

    is to make 1px invisible border around every tile?

    I tried a lot of combination... tonight I will try again

  • I'm assuming you're after something like this.

    https://dl.dropboxusercontent.com/u/108 ... lemap.capx

    yes, this is a perfect example!!

    thank you very much <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • EDIT: I ""fix"" the problem with high-DPI display= yes, but just on the iphone, on the computer I have the same problem

    Hi everybody, I have a very big problem about this...

    I made some tilemap in 64x64 and it was perfect after I disable the webGL.

    Why I would to disable the webGL? because with cocoonJS the frame will be amazing...

    I was made 6 or 7 object with a sine movement (for testing), with webGL, the frame was 42/38!! but, when I disable the webGL the fps turn on 62!!! without slowing down or lag!!

    I don't need to use webGL because I don't use effect for my project...

    Now, where is the problem? the tilemap... every tile has a tiny outline and I don't undertand why...

    someone know how I can fix it? it's very tiny trasparent outline...

    and another question is, I read in the manual, if you use webGL, the performance incrase like twice...now, why in cocoonJS is different? with the webGL the performance is ok, but if I disable it will be perfect??

    thank you very much!!

  • >

    > I need to spawn the object where the tilemap are in different way, but maybe is not possible...

    >

    I don't understand. Can you draw a picture?

    >

    > because with this method I can spawn the object with the specific x and y...

    >

    No.It spawn on tiles.For example,TiletoPositionX(1), spawn it on the 2nd tile horizontally(Since it starts with zero)

    yes different but it's the same... because I need to draw the code anyway... and with the tilemap you can't set a perfect axis....

    my method it's for save time, when you draw on the tilemap, you can save the tilemap in one JSON file... I'm thinking about if is possible to spawn the object where the tilemap is without write anything...

    like:

    for each single tile, where the tile is "1", spawn a object...

    with the collision you can do it, make a big vertical line and move in horizontal or vertical, and when the "big line" touch a tile numer "1", the "big line" spawn a new object where the tile number 1 is... I can do it actually but I would prefer without "scanning"

    thank you for the reply

  • Top left tile is zero and so on....

    thank you for the reply, but I mean,

    I need to spawn the object where the tilemap are in different way, but maybe is not possible... because with this method I can spawn the object with the specific x and y...

  • Use TileToPosition system expression to spawn on a specific tile.

    Do you want it to be spawned on colliding tile?

    I would like, when layout start, just spawn object where some tile are on the tilemap... i post the capx...

    I can do it with a collision maybe, but I prefer the first method... but I don't know how I can do it...

    Thank you

  • Hi everybody,

    I like to make this method for spawn my object where a specific tile is on the map.

    when I make a multiple level with a different map, to make easy, I would like to spawn some objects (coins...etc) where a specific tile is on the map, and after that delete the tile.

    I think is possible with a collision, but without collision is possible? I have this dubt...

    someone have some suggetion?

    thank you very much!!

  • I am currently designing a shoot em up game meant to be played on mobile and tablet.

    Since I have like 3 years of experience in C2 I know how to make events in a safe way, but one question I am asking is:"what kind of things can make the gpu do more work?"

    Like for exemple, does setting the angle actually really make the GPU do more work to redrawn the sprite at an angle?

    Or other things like that

    Thanks in advance.

    I think the best way it's to try every single "doubt" with a debug and test on mobile... I have the similar problem for my game...

    I means, I made the map with the tilemap, but when the player is going to a specific region of the tilemap (45* degrees collision) I will lost like 20fps, and actually I don't know why...

    another, the mb of the images are very important, if you make a less mb will be better, save a png for the web for example will save a lot of kb...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the guide! Studying Facebook's API now...

    no problem, I suggest to register on stackoverflow, is a perfect community for this problem... for the facebook API you need to know hot to implement facebook with php...

    at the first I suggest you to install XAMPP to test your application in local server... after that you need to make application on facebook and set the url of your application in the options of your application (search how test app in localhost with facebook)

    now, I suggest to load all information of the user with the API, you need to implement this code in your index.html of construct2 (rename in index.php, search how get the user data and the permission)

    now, you need to have a database and a php for communicate with the php..., should be like:

    when the user connect on the application, load the UID from the php (or plugin) with username,email...etc and send this information to a registration page in php. the registration page will save all of the data on the database.

    now, you need to make a code to see if the UID already exist on the database, and if the exist jump the registration, and if exist load all of the information in a specific page on php, and extract the data with construct2 to a specific variable.

    now, the problem can be how store the JSON file, because the database has a limits of the string, and you can't save the JSON file in one value. for this, you can make another code in php when the user is on registration... Remember, the UID of facebook is unique and this is very good, so that you can use this to make a folder in a specific server with a php code, and when some one need to save the json file just make another code to upload the file in the same folder of the UID.

    the easy way is:

    You can do it to send the JSON string with the AJAX, the limits of url is 2000 characters, for this you need to make more of JSON if your characters are more than 2000. if you make a map like farmville, you can store the tilemap in one JSON for example, another one for another things etc etc....

    for load the file will be easy because you know where the savegames are stored, by UID of every user...

  • Social games like the legendary Restaurant City or Farmville. Where will the data stored, how to retrieve information and data for the "neighbors" system and so on. So much is needed for a good social game. I don't see how Construct 2 can do this yet unfortunately...

    and I don't think it's easy. Correct me if I'm wrong

    Hi, I never play Farmville or similar game, I just saw to play my friends...

    you need to make a database to store all of the information... like, when someone connect in your game, construct2 should take the UID and save in database... all of the data (JSON, variable...) should be on the database.

    for the neighbors you need to make a code like "show friends who play the same app", this is easy, you can do that with php, after that you need to get the data from your friend (from the database) but how get in the games depends... in the game for example, you can appear a list of your friend with the avatar, and when you click to one, just open the data of your friend to show his game, and you can also add action....

    you need to know mysql, php, and the API of facebook...

    it's possible, I never try to show the friends who play the same application, but I'm sure it's easy

  • ok i did another test here to see if this might be something someone can look at.. the exact same problem is happening in this simple example as my full blown project..

    https://www.dropbox.com/s/7unguiia8x6bz ... e%201.capx

    notice how you you can click the back button but the tracking of these are not consistent.. the project only has this one graphic.. so i don't know what else can be controlled to make it where when i click anywhere inside this button will respond as a click action.. notice the solid color is an alpha blend.. i was thinking maybe 0 alpha pixels click "Through" while solid count, but it doesn't seem to be the case with this example.

    Any insight on this would be super helpful.. i'm working hard to get this done and this is a really silly bug i can't seem to get past having spent a lot of time trying different things to work around it with no luck

    Thanks!

    Caleb

    You need to fix the collision polygon for the sprite.

    Edit: ops, I didn't see

    it's because the collision of button maybe, i fix it and is work fine for me... you make like a "hole" on the collision <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • Which feature is better?

    *Bullet behavior

    *Scroll to X

    Considering performance and usability.

    the best way is to look on the debug mode and try both of them... just make all of two and look on debug...

Ribis's avatar

Ribis

Member since 22 Oct, 2012

None one is following Ribis yet!

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies