hobibit's Forum Posts

  • I have situation like this:

    export default class attackInstance extends globalThis.InstanceType.attack
    {
     name: string;
    
     constructor(
     name: string,
     ) {
     super();
     this.name = name;
     }
    }
    
    runtime.objects.attack.setInstanceClass(attackInstance);
    ...
    const attack: attackInstance = runtime.objects.attack.createInstance(0,200, 200);
    

    And what I want to pass arguments to constructor but I dont knew how or even if its posible.

  • So, I have this game. And I want to add Google Store (MobileIAP).

    First I have to log in to GooglePlay.

    But When I try to log in to GooglePlay it always fail and when I display error message it display "10:"

    I run app using Google Store so app uploading work. I cant log in in app.

  • Not that easy:

    - text can change

    - not all text should have background

    - text can have different font sizes

  • Hi.

    I use DrawingCanvas to draw lines (and other shapes)

    I have a problem with line thickness. For example, I draw 100 identical lines but on-screen in-game lines have different thicknesses and some lines are invisible.

    hobibit.itch.io/test-canvas

    Is there any universal solution for this?

  • Hi. i have problem with text background when text have larger font size. The text background don't cover bottom of letters that end lower like: g y p j

    hobibit.itch.io/test-font

    I tested:

    [size=50px][background=#ff0000]change background color[/background][/size]

    [background=#ff0000][size=50px]change background color[/size][/background]

    same effects

    Tagged:

  • Hi all. I'm working on a game. Player fly small ship and fight with large enemy ships.

    I was trying to fix interface. But i'm still not sure it will work properly. So my question is: How can I improve interface?

    In demo bellow player can fight with against 7 starbosses. Player can use few basic weapon and few ships.

  • Hi all.

    When I export project to HTML5 it creates few folder's and few files.

    it creates file: index.html, its ok

    And it creates files like: data.js, c2runtime.js, can i change location of these files in easy way?

    I want to have structure like:

    ../index.html

    ../other/files/c2runtime.js

    ../other/files/data.js

    Media and images folders/files are NO problem because i see option to change dir easy.

  • No no no just no. This is how array dont work. Just no no no.

    Check how array work.

  • New enemy in my game.

  • Is this something new?

    Thanks for fast answer

  • Hi, i have some problem with this. On the beginning everything was just fine, work great, but now the simplest think canot work for me...

    Now im trying to make "game" that display AirConsole.DeviceIDJoin on screen for each connected player. It work for 2 player but newer for 3 or more players.

    file too airconsole with controler (controler copied from tutorial)

    http://alfateam.cal.pl/air/Grawitacja2.zip

    and construct2 file:

    http://alfateam.cal.pl/air/plik.capx

  • Posible and quite easy. 2 ways.

    When any stat change call function, and this function check player stats and diplay correct animation.

  • For wind you can use custom movement. Or just change x position of player.

    For ice you can change player platform values: decrase acceleration and decceleration.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You drive car. You can turn left or right to avoid obstacles. Llonger you drive faster you trawel so you will crash eventualy.

    Idea 2

    You menage caravan traweling thrue desert. You can hire worker too carry bagadge. Each worker need to eat. You can find oasa to gain some water and food. You can be hit by sandstorm, atacked by lions so you lose some worker. Player can set camp to rest or return to home and fight the desert next time.goal is to cross whole desert. Player can die from starwation lack of water or be killed by animal.

  • Easy.

    This all things hapend every tick. So when your player is close to enemy it wait random time then attack. But it hapend every time so for example 60 times per second. So script will do this 60 times. Script wait random time 60 times per second and then attack 60 time per second.

    You must add boolean isattacking. When is attacking is true dont attack. When you attack before wait set isattacking to true. And after animation attack end set isattacking to false. At start isattacking is false.