Waltan's Recent Forum Activity

  • Okay, couple of detector sprites. But there will be alot of zombies. How to make specific detector follow specific zombie?

    I was trying to make it using private variable in detector (set it to zombie UID):

    Start of layout ->

    + For each zombie - create object detector at zombie.x, zombie.y

                                 - set detector.a = zombie.UID

    Every tick ->

    + For each detector

       + detector overlapping zombie

       + detector.a = zombie.UID - set detector position to zombie.x zombie.y

    but when zombie overlapping other zombie detector's position goes wrong and I'm again start to generate thoughts like: there is another way to make it easier.

  • Hey guys. I have some problem with making Zombie AI.

    For make them move and fall I use Platformer behavior (Default controls: no).

    And their movement look like that:

    zombie.x < player.x - simulate control Right

    zombie.x > player.x - simulate control Left

    Also, they need to detect boxes and jump over it

    (if Speed = 0 - [idling] - simulate control Jump)

    But if there will be 2 boxes and one of them will on top of other and zombie needs to destroy first, and then jump over second.

    I tryed to make some kind of detector (sprite with bullet behavior) and it works kinda fine but i'm think there is a way to make it easier.

    Want to see your suggestions :)

  • For example i have an array with:

    x0 x1 x2

    1   2   3

    and i want to save it to the WebStorage. So I'm gonna use:

    For each element -> WebStorage: set value at key "test" to array.curx & "_".

    I will get "1_2_3_"

    And how to get this values back?

  • Ashley wrote there that

    Note: directCanvas is not yet supported on Android, but support has been announced.

    So, when it gonna be released they will add this to the construct or it just for XDK?

  • The only thing I expect from the e?e - saving array to a file :D

  • Here's another approach to clipping a line to a box:

    http://dl.dropbox.com/u/5426011/examples10/lineClip.capx

    Also an alternative solution would be to use math to find the intersections between the line and the sides of the box.

    Check your mail, please :P

  • I made some small changes, like changing the origin of the line to left, and using two objects instead of an instance variable (easier in this case, in my opinion).

    My suggestion: LineBetweenDots.capx

    Big thanks!!

    If you do not mind, can you help me with something else?

    I need to make this line not to get over some area like on the screen:

    <img src="http://s1.ipicture.ru/uploads/20120425/dWp771QE.png" border="0">

    Any suggestions?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I made a small project about creating sprite between 2 points. Now I need your help to set the width of this sprite and the angle from first dot to the second one.

    .capx

  • Rotate your image 90 degrees clockwise.

    CAPX: VladossProblem.capx

    Oh, this is so silly...

    Thanks!

  • Set the object's origin to the center of the object.

    Ehm.. i'm going to use it like a sword, so i need origin in the bottom

  • Just a simple

    Every Tick -> Set Angle Toward Position(mouse.x,mouse.y) - event.

    But something wrong.

    http://dl.dropbox.com/u/34384736/angle.capx

    Or is this the only problem I have?

Waltan's avatar

Waltan

Member since 5 Jul, 2011

None one is following Waltan yet!

Trophy Case

  • 13-Year Club
  • x4
    Coach One of your tutorials has over 1,000 readers
  • x2
    Educator One of your tutorials has over 10,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies