RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
(Request) Chess peice on hole/button

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 84
~Zushau~ Stuck in a rift of time....
hi just wanted to know what do i need to make this? common event, or a script or sometyhing?


 i want to be able to put the chess peice on the button to open the door, but id otn just want to be able to move it in a straite line, i want it to move for instance, if i stand on the bottom of it iw ant it to move up and if im on top i want it to move down get me?

Thanks
Jack/
~Zushau~
~Zushau~

Stuck in that vortex again, with a laptop this time!

********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
track the chess piece's position with two variables when it's pushed, and if it's equal to the X and Y coordinates (position) of the switch, activate the switch.

that's the only way I can think of to do it.

Chess Piece -> Event Page 1 (On Hero Touch)
when the hero touches it, have it move one square away from the character.
there should be an option in the 'set variable' event call to store the X and Y position of an event on the map.  Have one variable for X and one for Y of the piece.
then with two conditional branches, you can first check the X variable, if it is equal to the X of the switch, check the Y value, if that is equal, then activate the switch, and disable movement of the chess piece.
(turn on Self-Switch A, and have a blank 2nd event page set to trigger on Self-Switch A)

that's the pseudo code of it, you'll have to put the right event calls together, but I think you can do it from here.
* Cecil hopes it wasn't too confusing .-.

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep:
Level 86
Bringer of chaos!
Thanks namkor.. this actually helped me lol

I tried to make this event once or twice and gave up and never tried since.. but your idea would work..

very simple if i were to make the event once it reaches x and Y pos on the map to activate the switch!