0 Favourites

ImagePoint

This forum is currently in read-only mode.
  • I'm trying to set something to an imagepoint of a object. However, I keep getting this message:

    "'Imagepoint' is not a recognised system expression or usable object name."

    I used this

    Sprite.ImagePointX(Imagepoint)

  • Nevermind, I figured out what I did wrong, but I'm having another problem. I'm try to have an object set to another object's imagepoint, but it doesn't seem to work.

    <img src="http://img167.imageshack.us/my.php?image=clipboard03nc9.png">

    I'm trying to make a hit box.

  • Create a new event for "ALWAYS". For the conditions, first choose the object. In the position area there is an option for "Set position to object" or something along those lines. Then you just pick the object from the list at the top, pick the layer and the image point you want it bound to.

    Easy.

    Make sure that you don't have any copies of that event bound to other objects though. You will need a new hitbox in that case, for each different object. If you're making multiple hitboxes on one object, then you'll have to make them individually.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • I tired that, but it just disappears.

  • If it's not working like you expect it to, post your .cap so someone can have a look.

  • Okay, first you need to set up your image points. Open the sprite editor:

    <img src="http://i36.tinypic.com/23lxjk6.png">

    1. Click the Image Point tool.

    2. Click the "+" button next to the point name dropdown and enter a new image point. Give it a name that's easy to remember, like "hitbox."

    3. Select the newly created "hitbox" image point in the dropdown and click the sprite where you would like the image point to be set. (You will have to do this step for every frame of your sprite's animation.)

    Next we go to the Event sheet and set up your action:

    <img src="http://i37.tinypic.com/29x8yrs.png">

    Viola. (It also helps if you don't disable your event group )

    Also, when did mediafire become so stupid? It used to be nice and streamlined, with one-click download, and no popups. How the hell are the popups getting past my blocker anyway? Ugh. Everyone should use http://fileshack.us/ , it's much less annoying. </rant>

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)