rfisher's Forum Posts

  • I added AI to the behavior. You can set a destination point and the object will move randomly towards it. I also made a demo(demo2 in first post) which shows a black box moving to colored squares labeled with numbers. The black square moves from 1 to 2 to 3 to 4 in that order. let me know if there is any bugs.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Its stuck on Loading... on IE9.

    Graphics look amazing, I'll just switch to Chrome and try it.

  • felixsg

    I was optimizing the code. The url should be good now.

  • delgado

    I have a idea on how to do this. It would not be automatic, it will require some external events.

  • Added the ability to pick how you want the behavior to work.

    8-way

    4-way

    up

    down

    left

    right

    Up, Down , Left and Right all move in those directions, but also at 45 degree angles from the direction.

  • I just released the behavior, let me know if you have any problems.

  • Ashley

    It was my maze plugin that was causing the trouble, its fixed now. sorry about that.

  • <font color="red">Updated - December 31st 2012 Ver 1.02

    I added collision registration to the behavior and made changes according to the new behavior template.</font>

    All have is a working demo of the behavior.

    Demo

    Demo 2 shows the object following a path defined by 4 points.

    Demo 2 CAPX

    The behavior is called runaway and all it does is randomly move a sprite around the screen, bouncing off solid objects.

    You can set max distance it travels before it randomly changes the direction. Delay when direction is changed. The speed of the sprite in pixels.

    I'm still testing and if there is interest in the behavior i work on it more to release it to the public.

    This demo is made up of only 2 events and 1 of them is to show the FPS.

    Runaway Behavior

    Knights follow path on a map DEMO

  • I found my error. I finally looked up what was a action ID. Sorry for the post.

  • I get the follow error message when developing a behavior. My problem is that the message is not very helpfull in telling me whats wrong. I know that a Action ID duplicated and that is the problem, but after changing the name 3 times i still get the same error.

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

    Construct 2 Check failure

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

    Check failure! This is probably a bug:

    ACE table: Action ID duplicated in ACE table

    Condition: act_ids.find(id) == act_ids.end()

    File: c:\c2\source\exporters\html5\..\..\common\ERAHelpers.h

    Line: 203

    Function: void __thiscall era::ACETable::AddAction(int,int,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,void (__cdecl *)(const class era::StaticResult **,int,class era::StaticEvaluation *))

    Build: release 92 (32-bit) checked

    Component: HTML5 exporter

    (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   

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

  • VERY fun. How many level are there?

  • That worked, thank you.

  • Just like the subject says. I got a sprite with the behavior of platform with the default controls set to "No". On the up and down keys being pressed i set the gravity angle in the appropriate direction to simulate the effect i'm looking for. The problem is that the speed of the object speeds up or starts at the speed from the other direction. The speed should be zero and gradually increase based on the platform properties. I would set the speed to zero when i change sprites direction, but that option is not available.

    To see what i mean, as the blue guy either drops or rises hit the up or down key before it reaches a grey solid object.

    example

  • Thanks, will look at making the changes.

  • Ashley

    I only have 1 physics object moving at a time, the other physics objects are not allowed to move. Setting all these objects to physics is the only way it blocks/stops/restricts the only movable physics object.

    Maze Game