- Joined
- Aug 15, 2012
- Messages
- 1,093
- Reaction score
- 104
- First Language
- English
- Primarily Uses
- N/A
After discussing with a few people on one thread, I decided to make it a new thread so we can normally discuss this matter more. I am making a few systems for my game, however, I stumbled upon few problems that my scripting prowess can't handle, so I am here to seek advice to the fellow scripters who are better than me in this aspect.
My problem are as follows:
Is there a way to make the commands separable so I can select them at different locations? Or are commands only linear by column and rows that you can't separate them?
Here is a mock up of what I wanted to achieve:
This is for me to make commands that are only from the UP, LEFT, RIGHT, and DOWN locations.
Is there a way to move sprites in an arc, curvy lines, zigzags and different patters using a certain formula? I also would like to ask if its possible to hook the commands into it so I can do the same system like this one:
All those marked to red are commands, so basically, they are locations where the player can go. How can I move the sprite following those lines? Normally you can't event this (due to the locked movements that the sprite will follow according to the lines).
I tried using the method
#-------------------------------------------------------------------------- # * Move to Designated Position #-------------------------------------------------------------------------- def moveto(x, y) super center(x, y) make_encounter_count vehicle.refresh if vehicle @followers.synchronize(x, y, direction) endbut it makes the sprite automatically go to a certain position, not MOVE to that position.
Any thoughts about these?
My problem are as follows:
Is there a way to make the commands separable so I can select them at different locations? Or are commands only linear by column and rows that you can't separate them?
Here is a mock up of what I wanted to achieve:
Is there a way to move sprites in an arc, curvy lines, zigzags and different patters using a certain formula? I also would like to ask if its possible to hook the commands into it so I can do the same system like this one:
I tried using the method
#-------------------------------------------------------------------------- # * Move to Designated Position #-------------------------------------------------------------------------- def moveto(x, y) super center(x, y) make_encounter_count vehicle.refresh if vehicle @followers.synchronize(x, y, direction) endbut it makes the sprite automatically go to a certain position, not MOVE to that position.
Any thoughts about these?
