Kyatric's Recent Forum Activity

  • When you say "removed the if() case", do you mean you removed only the "if (this.g<0)" line, or did you also removed "this.g = 0;" ?

    If you didn't remove the second line do it.

    Also, maybe you should post a capx and your modified version of the platformer behavior. It would be easier to check out.

  • Hi!

    I've been able to figure out a prototype method for a simple turn based RPG combat system that works in one versus one. But I'm having a hell of a hard time figuring out how I would manage battles with one versus multiple enemies, any enemy type in any order, following turns, etc...

    Like there are a couple orders I'd like to give, how in construct would you say things like:

    "select the enemy at this position and attack him, use these values to figure out the result"

    "take the speed value of all player and non player character in play and apply this formula to then write a list of order of attacks"

    "the enemy at this spot is this particular type of enemy which has these statistic parameters"

    Not expecting a complete logic course 101 but just wondering if you guys could give me a trail or a hint or two that could unblock me. Just a general method idea on how to structure all this and where should I focus my attention. I've been on this one for the past week, so any help is really appreciated!

    http://dl.dropbox.com/u/38319441/RPGtest1.exe

    Need the INI:

    http://dl.dropbox.com/u/38319441/StringTable.ini

    Bless you!

    edit: more clarity

    I think what you need is picking.

    Sprite condition : section Pick

    Pick random returns a random instance of the object type.

    Pick closest test the distance between sprites and returns the closest

    Pick farthest same but returns the farther from the given position

    Pick by comparison allow you to apply the formula of your chosing returning the instance that corresponds best.

    Check also in section "Private variable" Pick object with highest variable & lowest variable.

    Allow you to test directly which instance of your object type has the higher/lower value.

    The characteristics of your monsters should be stocked in private variables, easying picking.

    Then once you picked one instance, use sub events. Any reference to the object type will apply actions/conditions to the instance picked.

    Ex:

    Pick random SpriteMonster

    + SpriteMonster.health > 0

    => Add 1 to SpriteMonster.x

    (For example. Only the picked SpriteMonster health PV will be tested. And only this instance will be moved if the condition is true.)

    Now for groups, or testing each monsters :

    System: For each object / for each object (ordered).

    Such a loop will go through every instances of the object type. You can then test conditions and apply actions. For each iteration of the loop, only the current instance (picked by the loop) will be influenced.

    Then again, you nest your tests/conditions in sub events of the "for each" loop.

  • I'm not a kongregate user, so I don't really know how it works on their site.

    From what I can see, I'd say you would have to modify the index.html file of an exported project and add the line:

    <script src='http://www.kongregate.com/javascripts/kongregate_api.js'></script>

    With the others "scripts" lines.

    That would allow the API to be available to your application.

    The tricky part would be using

    // Load the API
    var kongregate;
    kongregateAPI.loadAPI(onComplete);
    
    // Callback function
    function onComplete(){
      // Set the global kongregate API object
      kongregate = kongregateAPI.getAPI();
    }

    That initiates the kongregate's API in conjunction with the already present code that launches the C2 runtime in index.html.

    // Start the Construct 2 project running on window load.
            jQuery(document).ready(function ()
            {
                // Create new runtime using the c2canvas
                  ?cr.createRuntime("c2canvas");
            });
    

    Try to put the kongregate's code prior to C2's.

    This might work, or you might end up with an issue because jQuery isn't used for kongregate. I don't really know at this point.

    A plugin would then be the interface calling the JS kogregate's API functions according to C2 events. (this is pretty much the same as using jQuery functions in a plugin, I think the subject is evoked in C2's sdk).

    On the other hand, the server-side API is really simple. Just throw ajax calls at the urls indicated. You don't even need another plugin for that and can handle it through events pretty easily.

    JS is pretty straight forward to get used to (especially if you coded in other languages).

    Just check out MDN JS guide for starters.

    Hope it helps.

  • What I can think of is that the platform is short (only under the layout). If you take sonic past the boundaries of the screen, it will fall in the void because there's no more platform there.

    Also, auto-mirror doesn't work for me. Sonic still face right, even when I'm pressing the left key.

    And the simulate jump don't work in rows. I mean, I'll press the key up once and I have to press "shift" before the "up" key acts again.

    Pressing shift works continuously.

    (the test is done after having "reworked" the events:

    Start of layout
    + Mask set to invisible
    Keyb Up arrow is pressed
    + Sonic simulate jump
    

    )

    I don't know if that is the intended behavior for the simulate action.

    C2 r54; Windows XP SP3; FireFox 6.0.1; ATI Radeon HD 4870

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • For me it works now.

    I still got the background flickering when moving the preview window around (idc), but the important part is that the preview displays correctly in the window.

    Good fix.

  • Nice. Thank you.

  • The project was something I had been working on in the previous days.

    I had a two days old capx file, opened it, made a new capx save.

    Worked a bit on the capx and decided to switch to a folder project.

    I can't reproduce it even now with the "originals" capx. It seems to happen after having executed C2 a while, or maybe some other trigger I can't seem to find now.

  • C2 r53; Windows XP SP3; FireFox 6.0.1; ATI Radeon HD 4870

    I saved a project from a single file to a folder project.

    I tried to preview my project and got this check failure:

    ---------------------------
    Construct 2 Check failure
    ---------------------------
    Check failure!  This is probably a bug:
    
    Cannot find file on disk to return over HTTP
    
    Condition: FileExists(disk_path)
    File: HttpFileServer.cpp
    Line: 278
    Function: void __thiscall HttpFileServer::ServerRespond(struct _HTTP_REQUEST_V2 *)
    Build: release 53 (32-bit) checked
    Component: HTML5 exporter
    (Last Win32 error: 2)
    
    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.
    ---------------------------
    Abandonner   Recommencer   Ignorer   
    ---------------------------
    

    Looks like the local file server blew off with inexisting file, I'm kinda getting used to it.

    Anyway, I exit C2, launch it again, try to open my folder project and now I get an error how my project is missing the object texture for the tiled background object.

    A little workaround later, I copy my file (named "BGforest.png") in the textures folder and I am then able to open the project folder.

    Like for audio files during r50, it seems that background textures don't get copied correctly from a save to another. (or at least from a single file to a folder project)

  • Oh and look who's here, little Jesper!

    Credits to my amazing gf. This is our first son so far!

    Say hi!

    Not sure if you're just talking about your avatar or if you're a newly father.

    Anyway GG I guess <img src="smileys/smiley4.gif" border="0" align="middle" />

  • C2 r53; Windows XP SP3; FireFox 6.0.1; ATI Radeon HD 4870

    I was working on a project in construct2. (the demo for my pathfinder behavior)

    Saved it as a project folder, saved two versions in new folders.

    Adds some stuff about testing text objects' opacity.

    On preview I get a jQuery type of window message:

    Assertion failure: No project JSON model available
    
    Stack trace: 
    assert2((void 0),"No project JSON model available")@http://localhost:50000/preview_prelude.js:12
    ()@http://localhost:50000/preview.js:104
    ([object HTMLCanvasElement])@http://localhost:50000/preview.js:87
    ("c2canvas")@http://localhost:50000/preview.js:10
    ((function (a, b) {return new e.fn.init(a, b, h);}))@http://localhost:50000/preview.html:87
    ([object HTMLDocument],[object Array])@http://localhost:50000/jquery-1.6.2.min.js:16
    ()@http://localhost:50000/jquery-1.6.2.min.js:16
    ([object Event])@http://localhost:50000/jquery-1.6.2.min.js:16
    

    As well as an error in firebug:

    missing ] after element list ""stop"" in data.js (line 3846)

    After having clicked OK on the message firebug points to

    line 105 in preview.html

    "var pm = cr.getProjectModel();

    And gives the message:

    cr.getProjectModel is not a function 

    Indeed, cr.getProjectModel is undefined.

    Also.

    I tried to make a capx out of the current folder, just to see.

    And it seems I get the same error shinkan reported.

    Loading the file raises a check failure:

    ---------------------------
    Construct 2 Check failure
    ---------------------------
    Check failure!  This is probably a bug:
    
    Cannot find project file for animation frame
    
    Condition: FileExists(GetProjectPath().c_str())
    File: Projects\AnimationFrame.cpp
    Line: 186
    Function: void __thiscall AnimationFrame::Load(const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &)
    Build: release 53 (32-bit) checked
    Component: Construct 2 IDE
    (Last Win32 error: 3)
    
    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.
    ---------------------------
    Abandonner   Recommencer   Ignorer   
    ---------------------------
    

    Ignoring (several times, turning into fail to load texture error) allows to finaly open the project.

    And gets the same assertion JSON error as above.

    Get the zip containing:

    * demobug: the last version of the project saved as "project folder" and triggering the JSON assertion error.

    * democlean: the previous version of the project saved as "project folder" and executing as intended.

    * pathfinder: the behavior itself

    *demo pf.capx: the capx I saved from the demobug project.

  • Pretty cool crazy.

    Just a little typo at the beginning though : "Quests" instead of "Quets" ;)

    Else, nice anim. Maybe the general ambiance is a bit too shiny/light for a vampire ambiance, but it helps the readability.

    Good job, keep it up.

  • According to this CNN article player's average age now is 38.

    You can read the article to see about the time player spend on games as well as a discussion about this article on whatgamesare offering a divergent point of view.

    All in all, it really depends on the type of game, the platform (you won't get my 58 yo father to play on living room console. But he regulary plays a few games he really likes on PC (mahjong, flatout2, some shareware shoot 'em up giving you commands of an helicopter,...)).

    So I'd say, there's nothing set in stone, and it really depends on the type of game and the audience target.

Kyatric's avatar

Kyatric

Member since 18 Aug, 2010

Twitter
Kyatric has 583,402 followers

Connect with Kyatric

Trophy Case

  • 14-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • x15
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • x27
    Coach One of your tutorials has over 1,000 readers
  • x10
    Educator One of your tutorials has over 10,000 readers
  • x2
    Teacher One of your tutorials has over 100,000 readers
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

23/44
How to earn trophies

Blogs