I first thought it was a bug, but i had the same problem in gamemaker 8.1 so here is my problem:
I have the following script placed in a collision event:
x = xstart;
y = ystart;
if (global.teller <9)
{
global.teller +=1;
image_index = global.notenreeks[global.teller];
}
else
{
room_goto_previous()
}
Basically it places the sprite back in its original position (so the collision event should not be there anymore) and it should show the next image (image_index = etc etc) (only 1 at the time). Until all images from the index notenreeks are used (0-9 in total) then it jumps to the first room.
All works but there is one problem: as soon as the object (sprite) is replaced to its original position, the images keep being replaced fast until all 10 are shown and then it jumps to the first room. If, however I change the event to a keydown event, it all works perfect. Every time i press the key, only 1 image is changed (as it should be).
By putting the image back to the xstart and ystart i assumed the collision event would not continue, but somehow it does not stop. Have tried an exit in the code also, but does not help.
Any ideas?
Thanks,
Wouter
Edited by wtrbrs, 12 April 2012 - 12:22 PM.











