Magistross's Recent Forum Activity

  • Here's a simple yet working example to help you understand how it could work.

  • You can emulate a logical OR with a function. As pictured here.

    <img src="http://www.freewebs.com/johnwof/or.PNG" border="0" />

    A simple reversal of the logic could also emulate a logical AND... but it's quite useless considering Construct already does that ! <img src="smileys/smiley17.gif" border="0" align="middle" />

    edit: Oh, I almost forgot... just call this function in a condition like so : System -> Compare two value

    1st value = Function.Call("OR", statement1, statement2...)

    2nd value = 1

  • Of course it's possible. Depending on how you implement your characters, the method varies. If you have only one character on the layout at the same time, simply delete/do not create the other ones. If multiple playable objects can be present simultaneously, disable the behavior of the inactive ones, and set the scrolling to follow the active one.

  • Actions are processed before the evaluation of the next event's condition occurs. So basically, your sprite is climbing all steps at once, because all events were executed since all conditions were true at the time they were evaluated.

    Usage of "else" statements would have prevented this, but key press are "trigger event". You could have used a combination of "key is down" and "trigger once" though...

  • Else is only valid if it's the first condition AND also only if the previous event is not a trigger.

    You could also just reverse the order of your events.

  • if (360 + Target.Angle - Player.Angle) % 360 > 180   .... CCW
    else                                                 .... CW

    Should work for any valid angles.

  • Just replace the mouse condition "On Left Button Clicked" by the button condition "On clicked".

  • Memory editors, like Cheat Engine, are fairly easy to use. But a simple clever modification to your score variable could make the easy edits impossible. For example, you could store your score variable in a string concatenated with some junk characters. When you submit or display the score, just remove those extra characters.

    This would make the process of finding the actual memory address to hack almost impossible...

  • Haha ! It was nothing really ! <img src="smileys/smiley9.gif" border="0" align="middle" /> I could have just used abs() in the loops condition but I didn't like the idea of having index variables possibly taking negative values... <img src="smileys/smiley36.gif" border="0" align="middle" />

    Nice work with the engine, looking forward to seeing it in action !

  • Here's the capx with dt based movement.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Here's a capx with all directions covered. I'm using index manipulation and value permutation, not quite the same thing as zatyka but the end result is pratically the same !

  • If you want to use dt, don't change line 12-15. Change the lines that are affecting speed, namely lines 10 and 11. Also, change the loop condition "xLoopIndex <> 0" to "abs(xLoopIndex) > 1" (same thing for the y loop).

    I did those changes and everything runs fine ! <img src="smileys/smiley1.gif" border="0" align="middle" />

Magistross's avatar

Magistross

Member since 4 Jul, 2011

Twitter
Magistross has 14 followers

Trophy Case

  • 13-Year Club
  • Entrepreneur Sold something in the asset store
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies