vtrix's Forum Posts

  • the idea is to pin the selected objects to a move/rotate sprite in the middle point of the selection

  • i want to calculate the lowest and highest x and y position of a bunch of sprites, the objects from where i want the calculation would be selected by mouse, so the amount of sprites is depending on the selection

    how would i write this?

    do i need an array to do this? if so how would i implement this?

    my endgoal is to find out the center of the selected sprites

    so i think if i know the above i could calculate the distances and divide by 2 to get the middle point.

  • hmm well the pin example doesnt realy fly, im still working things out :)

    maybe youre right and is my approach wrong

  • first of all i wanted to create tabs using families, because i want to keep layers to a minimum and families are easier to work with and easy way to group things, so i think it would work perfectly for this

    but what if you need to add things to the menu on runtime, you have to have something to say , youre in that family..

    i could also pin this tabs to a certain place, for example bottom of screen,

    aside from this examples i can imagine that there will be other things created a runtime that will have to change or put in a family

  • is this something that could or will be added? i think it would be usefull

  • the only solution i found is to import everything as music, ive not been using sound lately but sad to know its still an issue

  • Hi Rex, some questions about hashtables

    is there a way to loop thru a hashtable or should i combine it somehow with an array

    and is a hashtable a good way to do something like a shop with tabs :

    example:

    armortab:

    heavy armor = properties: defence:4 attack:0

    medium armor = properties: defence:2 attack:0

    ...

    weaponstab:

    sword = prop: def:1 atk:6

    dagger= prop: def:0 atk:2

    ...

    how would i write something like this?

    {"armor"{"heavy_armor"{"def":4}, "medium_armor"{"def":2,"atk":2} }, "weapons "{"sword"{"def":1,"atk":6} "dagger"{"def":0,"atk":2}           }}

    ?

    thanx for any advice you can give..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • is fixed in the new release 80.2

  • 1st new event didnt make it crash

    made two new blank events and crashes, on existing capx

    edit: just tried with new capx, making two blank subevents makes it crash

    ---------------------------

    Construct 2 Check failure

    ---------------------------

    Check failure! This is probably a bug:

    Getting event sequence number from event without one assigned

    Condition: sequence_number != 0

    File: Projects\Event.cpp

    Line: 30

    Function: unsigned int __cdecl Event::GetEventSequenceNumber(void) const

    Build: release 80 (64-bit) checked

    Component: Construct 2 IDE

    (Last Win32 error: 0)

    You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way. Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports! Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally.

    ---------------------------

    Abort   Retry   Ignore   

    ---------------------------

  • also crash on blank subevent (existing capx), + and like 50 errorsounds, only option is to close construct

  • i made a simple test, this one doesnt work for me,

    two strange things, the destroy action on the callback only destroys one instance, should destroy all

    + none of the instances can be loaded back...

    simpletest

  • did you tried loading the saved objects after each save? with the second save function it doesnt load the objects,

    i was only guessing the bug was in save function

  • im sorry i wasnt clear enough, i mean,

    i have 2 "s" functions 1 enabled other disabled

    now when executing the save works,

    when you then disable the working "s" function en enable the other "s" function it doesnt work, the only difference is that its a save with callback, (under: advance:sprite)

    so i think theres some error in it or something

  • like i said, it was a file from the website, i opend it and did some work on it, it wasn't saved anywhere before, so i wouldnt know where to look, but when pressing ctrl-s i expected to get a save dialog

  • i thought it would be a quickfix :) i dont really mind, its probably something on my end, dont loose time over this!