Teclis01's Recent Forum Activity

  • Well first i think you have to refine the AI to construct 2 Event Model.

    For example :

    If it fails to reach its target, it will back up a bit, then re-attempt

    The first event seems to be a comparison of :

    Fighter.X + (size from point 0 to weapon) AND Fighter.X + (size from point 0 to weapon)

    => Fighter.attacking=true

    => Fighter set Animation "Attack"

    => ActTimer.start (0.5) // the time to reach end of attack animation

    Fighter in collision with Player AND Fighter.attacking==true

    This is just the begining... but i hope you understand how to.

    I think you should analyse the pattern with event handler and timer

    Sorry for explainning with my own understood i'm not fluent to write event of construct 2 ^^

  • Hello,

    I try construct 2 from nearly 2 weeks and i'm asking a question that i haven't find any answer in google and in FAQ.

    I know that we can ask to a remote server via Ajax to get datas (like XML and i think JSON). I know that we can "translate" the game for a lot a platform like html5, ios, android, ...

    I would like to keep in local information about levels to let's players play even if there's offline.

    I found about Webstorage and it's about keeping information in local or in session.

    For volume reasons i think i would like to keep few levels.

    When playing offline on android device (for example), online does not updte until :

    -synchronization of offline device connect to online

    -online computer is used to play online

    Can i use Webstorage for this kind of use? or what should i use?

    If i choose local storage (seems to be better for the behaviour i want) when occurs the cache clearing? can i force the cache clearing?

    I got information in the manual scirra.com/manual/120/webstorage

  • Hi there

    A partial answer cause i never played thoses games (even if it seems good games)

    terraria.gamepedia.com/AI

    It seems that there's a lot of tutorial to implement AI but i always used A* and Dijkstra algoritm...

    I think that there is a lot of way to implement an AI and noone can give it all just in 1 topic.

    Sorry :(

  • Check my subject.

    scirra.com/forum/topic84702.html

    I had the same problem but with space key.

    I let a time of 0.2 s cause of maniac shooter style game.

    I hope it could help you!

  • Is there a solution to have the behaviour expected?

    Or it's impossible for now?

    I try to play with attribute but i found nothing... :(

    That's sound so bad...

  • db.tt/taT2ECyG

    If i understand, it's already configured like you said.

    I have :

    -4 sides with behaviours : solid and physics(immovable is set to Yes)

    -1 ball with behaviours : platform and phisics(immovable set to No)

  • Hi :)

    I just try to play to undertand how it works when sprite have Physics and platform behaviour.

    I check for FAQ for this but haven't found the answer (even in the topic about Physicy and Platform) :(

    So i try to make a box with a ball rolling on the side it is. Sols are controlled by the Mouse (the calculation of angle aren't good but is enough to test)

    When the ball is on the bottom horizontal bar that works but when gravity angle change gravity had a strange behaviour. The ball do not slid to the side where the bar is the more "splone" (i don t know if the word is the good one)

    I would like to share the test project but i can't write any url

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi there :)

    I'm french and i just discovered construct 2 since 1 week.

    When i was young (�_o I am always young!!! ;)) , i made few ogame's like with my own engine and help a lot of projects.

    I never met an editor like construct 2 and i'm happy that someone do it.

    I do not know what would i do with but i'm going to try the more of possibilities i can.

    Indeed i'm a player since a lot of years (nearly 20)

  • Finally i find how to make that!

    Here my solution :

    Create Sprite with Timer behaviour

    Add 2 variable instance :

    begin =0

    end=0

    Keyboard : on Spacebar released

    =>Timer Set end to time

    Keybord : on Spacebar is pressed

    AND

    Timer end <= time-0.2

    =>Timer Set begin to time

    System / Every 0.1 second

    AND

    Timer <= Self+1.5

    =>Timer Set begin to 0

    =>Timer Set end to 0

    =>Player Spawn Shield

    => Timer Start Timer "Shield" for 4.0

    Timer : on Timer "Shield"

    =>Shield destroy

    The last thing is to make follow the shield :)

  • Thanks for your replies guys :)

    I think about my problem a little more, i'm going to try to explain but i'm not event fluent for now in construct :D

    So i would like to make that : By pressing fast the fire button, this will activate or help to activate the shield.

    OnKeyPressed

    if(end+0.2<=now){ // 0.2 is in seconds (0.2s maximum between 2 keyPress)

    Timer.begin; // reset of time begin

    }

    On KeyRelease

    Timer.SetEnd(now);

    Every 0.1 second

    if(begin-end>=1.5){ // 1.5 in seconds

    SpawnNewObject(Shield);

    }

    I think the algorithm is ok how can i translate thoses if statement in event?

    Few explanations :

    Timer wouls be an object with 2 members (begin and end)

    begin represents the most recent time of key pressed (with a rule of buffering if the last one was less or equal to 0.2 seconds before the next one)

    end represents the most recent time of key release

  • Hi there =)

    I'm just newbie in construct 2 :p I just made few tutorials and i don't find any subject about my problem.

    I'm making a conversion of maniac shooter and i'm looking for tips ^_^

    How can i know if a key on keyboard is pressed during X seconds?

    The key is also used to fire and when key is kept press it activate a shield.

    When shield is active how should i do to make following or collide the 2 sprites during X seconds ?

    Thanks a lot !

Teclis01's avatar

Teclis01

Member since 27 Jan, 2014

None one is following Teclis01 yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies