Allardje's Forum Posts

  • Hi all!

    I got 2 different ajax requests with 2 different tags.

    Now my question is.. How can i get the right TAG with a Ajax.Lastdata request?

    I did look alot online for the right awnser but i can't find it :(.

    So i got:

    Request: TAG1

    Request: TAG2

    And all i can find is Ajax.Lastdata

    Is there a way like: Ajax.Lastdata("TAG1") , Ajax.Lastdata("TAG2")??

    Thanks in advance!

  • Hi all!

    i've got a problem.

    I created a app which randomly spawns objects and float from right to left.

    Works great when i preview it on PC.

    Once compiled with Cocoonjs it works at the start. Once hitting a program it just wont continue..

    Is there a know issue with not proccessing groups?

    It all goes well till it has to active some groups?

    I am using: Canvas 2D/WebGL

    Found out i have the same problem with PhoneGap

    Thanks in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi all,

    Let me be clear on this one. I use my global variables as a kind of gamesettings when a game start. For example the time to spawn a object.

    This is different in every level with the same layout.

    One layout which can be seen as the game frame. In that layout i check which level is selected, and than i insert the information needed for that level. So again for example the spawn speed.

    This isn't hard to reach, what i was aiming for was the best way to do this.

    I learn everyday with CS2 and if i check the difference between my start period and now i already know alot more to save events etc.

    So sometimes i'm just not sure what the best way is to do something.

    Though all methodes above are pretty small and would work great.

    Thanks all!

  • Hi,

    Yeah i was afraid so. I actually did that. The same way as including the sheets so i can use my sheets as level variables. Works perfect but global variables would be much easier to modify.

    Well thanks! I continue using the method i used and you just told.

    Thanks!

  • I do not know what you mean for sure.

    What i got now is eventsheets like:

    Eventsheetlvl1

    Eventsheetlvl2

    And on the layout i do it like:

    if level = 1 include Eventsheetlvl1

    if level = 2 include Eventsheetlvl2

    Thats works great, but i can not use duplicates of global variables.

  • Hi!

    I want to know if it is possible to use mulitple global variables with the same name in different event sheets.

    I got a game with different levels.

    Seperated in:

    Level 1 = EventsheetLevel1

    Level 2 = EventsheetLevel2

    etc..

    I want to use global variables in both event sheets with the same name but i can not make duplicates.

    Can any one tell me how i am able to do this?

    One way i can think of is including all global variables in one sheet, and in the different sheets set the global variables.

    So it would be:

    EventsheetLevel1

    SET GLOBALVARIABLE1 1 = ....

    EventsheetLevel2

    SET GLOBALVARIABLE1 34 = ....

    That way it is possible but the way to edit it is way more time taking than just normal global variables.

    Thanks in advance!

  • You sir, are still a legend :)

    Thanks alot!

    Though it did not work 100%. But yet, i just needed to know the technique behind it.

    What i had to do was to change the boolean to a value and instead of false and true i had to use 0 and 1. This way i could compare the values.

    Again. It works like a charm now! Kudos!

  • Hi! Long time ago yet i got a question about this!

    I had alot of help from the "Whack-a-mole Advanced"!

    Though i have a question. Is there any way to check if a "hole" is filled? And if yet do not spawn a new mole there?

    Thanks in advance!

  • I also now updated my first post with a link to the result.

    Thanks guys!

  • You got me right there! I never looked in to behaviors pretty much. Never knew of SINE.

    Thanks! Works like a charm :)!

    For other people..

    Behaviors > Sine

    Movement: Size

    Wave: Sawtooth

    Period: 1

    Magnitude: 300

    Than you get a perfect countdown! ( you have to delete objects and create etc after some seconds but thats just some playing around. )

  • Hi all,

    After alot of confusion about Construct 2 and animations i am not sure what the best way is.

    What i'm up to is a countdown.. You know.. The basic 3 , 2 , 1 , GO!

    Now i want the numbers go from big to small.

    Now can some one tell me what the best way is to reach this goal.

    As far as i can think of now i have to make a animation with alot of images that are smaller every time. This isn't the only way to do it right?

    Thanks in advance!

    ++++++++++++

    END RESULT! Thanks all.

    LINK TO RESULT

    DOWNLOAD FILE

  • Does any 1 have a nice solution? I want to start designing but i first need to know how i can accomplish this.

    Thanks!

  • That would be a good idea but the problem is that the whole piece will have the "Drag & Drop" action later. So thats a no-go.

    Thanks for your reply!

  • Hi all,

    I've got a question i need an awnser for.

    It's i think pretty simple but i want to make sure i'm going for the easy way.

    I have a object looking like:

    <img src="http://restylemedia.nl/test.png" border="0" />

    And i got a "Player" looking like:

    <img src="http://restylemedia.nl/poppetje.png" border="0" />

    Now i want to be able to let the player trough, but only on the "path".

    The black area's should block the player, but the white(transparant) path within it should be walk-able.

    I have no clue how to reach this goal at a good way.

    Please explain to me how to reach this goal.

    Thanks in advance!

  • I took a look to it, but it seems that also Smaato uses a SDK.

    I just wish there was some one who could make a plugin to add advertising sdk's :(

    Still have no clue how to monetize my apps :(