ImagePoint

For questions about using Classic.

Post » Mon Sep 08, 2008 4:05 am

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)
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Mon Sep 08, 2008 5:47 am

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.

I'm trying to make a hit box.
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Mon Sep 08, 2008 10:04 am

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.
B
5
G
4
Posts: 50
Reputation: 1,225

Post » Mon Sep 08, 2008 10:36 am

I tired that, but it just disappears.
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Mon Sep 08, 2008 10:41 am

If it's not working like you expect it to, post your .cap so someone can have a look.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Sep 08, 2008 10:51 am

B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Mon Sep 08, 2008 11:20 am

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



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:



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

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 [url:35hp6r85]http://fileshack.us/[/url:35hp6r85] , it's much less annoying. </rant>
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests