Forum rules - please read before posting.

Moving sprites in classic 2D point and click game

Hi again!

I feel like I am abusing the forum since I find myself stuck every other second, hopefully I ll get the hang of it! Till then here is goes!

I have a scenario where the character is able to move a furniture once some conditions are met. I've set the furniture (its a bed texture) as a sprite with a hotspot and a few interactions. The premise is basically the character is able to push the bed once he applies some oil on the bed's leg.
I was looking for a way to activate a simple transform from the current position to a new position. Simple stuff. Just enough pixels away in the x axis to reveal the ground.
Having seen the teleport action as a solution to hide inventory items I was hoping to find something similar to that.
There is an Object action type called transform. This asks for a movable object though. I can see in the AC editor I have the option to create a dragable object but I am failing to make any of it work.

Any leads to my problem would be very appreciated!

Thank you!

Comments

  • You're on the right track - the Object: Transform Action can be used to move an object by some distance over time.

    It does need a Moveable component, but this can just be added manually to the bed's GameObject. Click "Add Component" in its Inspector, and then either type "Moveable", or find it in the component menu under Adventure Creator -> Misc -> Moveable.

    There's no Inspector for this component - it's all down to the configuration of the Action.

    If you want this change in position to be recorded in save-games (or when returning to the scene from another), you'll also want to attach the Remember Transform component to the same GameObject.

  • I swear I tried that and couldnt make it work. It does work indeed thats exactly what I needed. Thank you so much!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.