H
HenrikoNumberOne
Guest
Hi! I'm making these spikes which are supposed to follow this object as it goes up and down continuously. However, I can't seem to get it to work. Here is a picture of the current setup;
The blue thing is my object, which is supposed to go up and down with spikes on the bottom and the top. My problem lies in having the spikes follow this object as it goes up and down. It also has to work with multiple of the same objects in the same room.
Firstly, I have this code in this object's create event (which, if we'll call it by it's real name, obj_tall_spike_moving):
... which simply creates the spike object I need. But that's it. I would preferably not have the spikes and obj_spikes_tall_moving share the same sprites and mask, that's why I want them as separate objects but still attached to each other and affected by the main object's movement. The spikes (and the core object) need to be able to switch direction if any of them hit a wall, too. Any help would be much appreciated!
- Henriko
The blue thing is my object, which is supposed to go up and down with spikes on the bottom and the top. My problem lies in having the spikes follow this object as it goes up and down. It also has to work with multiple of the same objects in the same room.
Firstly, I have this code in this object's create event (which, if we'll call it by it's real name, obj_tall_spike_moving):
Code:
instance_create(x, y, obj_spikes_tall_moving_top);
- Henriko
Last edited by a moderator: