Oni Lo's Forum Posts

  • Anyone?

  • How do I get the android bar stay in this position while my app is running in landscape mode, just like in the picture below? (with CocoonJS)

    <img src="http://www.blogcdn.com/www.engadget.com/media/2013/05/googleplaygameservices619pxhedimg.jpg" border="0" />

  • Me too!

    I want the player has the option to earn more performace as Flash games have.

  • This is the idea Cherico! But this way, as Aphrodite said, you may have trouble with objects and especially with enemies / NPCs who decide to walk to the edge of the world. They will not be visible or not will attack depending on which side you are.

    Searching in programming forums, I saw that programmers make the layout work as a tiled world, fully functional. But seems that is something very complex even for programmers.

    But thank you for the example! Depending on the game, it can work perfectly.

  • Unfortunately not.

    I think that it is not possible with Construct. Maybe with plugins.

    I was studying this subject, and saw that it is kind of complex, maybe too much for HTML5.

  • I had a problem similar to this in Chrome (Samsung Galaxy Tab 2). When i use 3 touches, the touch screen stops working in Chrome.

    In my game, i use only one touch, so i put a condition to check when the player touches, if the touch is the first one (touch number). This will automatically disconsider all other touches.

    But i dont have any problems like this in Cocoonjs or Firefox.

  • Thank you all for responding!

    A solution to pixel Perfick's system is create a sprite "timer" every time the "GameScore" variable changes, so if the integer variable of some sprite reach 100, archivement unlocked. But as he said, is not the most elegant way, especially for a mobile game, because it envolves alot of sprites and fade behaviors. But still a way!

    Thank you for this example. I think it's a great solution! I will work with it.

    If I get something simpler (will be difficult) I'll post here.

  • Hello Guys!

    (sorry for my bad english)

    In my game will have some achievements for the player to collect. I've done almost all, I'm only stuck on this:

    - Make 100 or more points in 10 seconds.

    (10 seconds not in the begining of the game, but any time)

    I have a Global Variable called "GameScore" which has increased its value every time the player does something which should earn points (pretty obvious).

    But how can I do this "Archievement"?

    I think in every point earned, the system has to count points earned during the next 10 seconds and at the end it has to check if we can get 100 points or more. But that in every point! I can do 100 points in 10 seconds, then the system will do this check 100 times virtually the same time! Crazy, no?

    Does anyone have any suggestions on how to do this?

  • Hello InfinityX!

    (sorry for my bad english)

    I'm also having the same problem in my TextBox. I also do not know how to use the "Auto Font Size". Ok, it automatically changes the font size according to the layout, but how to set the size of my font? I want my font-size at 30px but when I use "Auto Font Size" it becomes very small, like 10px. My solution was to Resize it every Tick or whatever. Like this:

    -Every Tick

                 -Set TextBox size to (300*LayoutScale, 40*LayoutScale) (My TextBox initaially have 300px,40px)

                 -Set TextBox CSS Style "Font-size" to ""&30*LayoutScale &"px"

    The "set size" worked fine, but the "CSS Style" don't. Nothing happens (with Auto Font Size off). All looks right to me, but I don't know why it doesn't work. Does CSS Style doesn't accept this ""&30*LayoutScale &"px" expression?

    I searched for my problem, and I found this post.

    If anyone has any solution, I will be very grateful!

  • An example:

    Subscribe to Construct videos now

    . Look at the signpost. See how the whole layout is repeated as a tile?

    And that's the idea I mentioned above: http://mysterycoconut.com/wp-content/uploads/2011/09/ScrollingTiles.gif

  • No, I want that the whole layout behaves like the "tiled background". And i wish to add a lot of character and events on that.

    I've played a flash game like that, but I do not remember the name or where ...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you for sharing your example. The random generation of the scenario lets players completely lost in the woods. Pretty cool!

    The problem is that my scenario can not be generated randomly, things should be fixed in their places.

    I was thinking something very similar to your example, added to the Pixel Perfick suggestion. I also thought about putting the character standing in the center of the layout. As my scenario will consist of tiles, I ordered that all the tiles, when reaches a certain distance from the character, it moves instantly to the opposite side. The tiles will removed from behind of character movement and placed in the first free slot in front of the character. An formula can be applied to all tiles.

    I think it will work well, but maybe not for my game, because in certain situations, the camera will show the character to another part of the level ...

    I guess what I'm wondering is perhaps quite complex. I think it will only be possible with some kind of behavior applied to the layout . What is not possible... <img src="smileys/smiley19.gif" border="0" align="middle" />

    Anyway i will see what i can do with this idea! <img src="smileys/smiley1.gif" border="0" align="middle" />

    Thank you!

  • Joannesalfa - Wrap behavior will cause the character to be teleported to the opposite side of the layout. As in Asteroid. My idea was to create a large map made with tiles, seen from above (like old Zelda games). Where the character can walk endlessly in one direction, passing through the same point several times, as if he was circling a planet. The canvas will follow the character. When he will be teleported by the warp behavior, it will cause a interruption in camera movement, what will not be cool.

    Pixel perfick - I don't know if it will work, because the player can choose to walk endlessly in one direction, which would eventually reaching the limits of the layout.

    Thank you anyway guys!

  • Helo guys!

    I have an idea and want to know if it is possible and how can I do it.

    I don't write very well in English, but I'll try to explain what I have in mind.(Pictures say more than words <img src="smileys/smiley2.gif" border="0" align="middle" /> )

    Look at this picture:

    <img src="http://i.imgur.com/5W5aWTD.gif1" border="0" />

    Imagine this being the screen of my game. What you see is an entire level of the game. The edges of the image are the limits of the layout.

    I would like that the character do this:

    <img src="http://i.imgur.com/WuPzSH9.gif" border="0" />

    The idea is that the layout does not have limits and that it was repeating itself as Tiles.

    It would be the opposite of the "Asteroids" game. The camera does not follow the layout, it will follow the spaceship (Mario in this case).

    In the picture I did it just horizontally, but I wish it were free, infinitely in all directions.

    Does anyone know if this is possible?

    PS: I plan to do a layout much larger than the canvas and not small like this example.

    Many thanks in advance!

  • The only one I found was the ReplaceColor (c2 native). It's not perfect, but I think I can improvise with this.

    Thank you!