2. can you increase movement of player if an object is present in the room? (i suppose a variable checking should do it)
EDIT: i have this for movement:
// up key
if (keyboard_check_direct(vk_up))
{
y -= 4 +(superSpeed)
sprite_index =spr_player_walk_up
Bdirection=90
}
// down key
if (keyboard_check_direct(vk_down))
{
y += 4 +(superSpeed)
sprite_index =spr_player_walk_down
Bdirection=270
}
// left key
if (keyboard_check_direct(vk_left))
{
x -= 4 +(superSpeed)
sprite_index =spr_player_walk_left
Bdirection=180
}
// right key
if (keyboard_check_direct(vk_right))
{
x += 4 +(superSpeed)
sprite_index =spr_player_walk_right
Bdirection=0
}and this for the speeding up the player:
if instance_exists(obj_fly_drone) {
superSpeed+=1 }This is all in step event. but when i move my player, the player moves at high speed! (and the distance he crosses while moving is getting bigger and bigger). And superSpeed is set at 1.
3. is there a way to create room transition of an object? (i have an object which you get from an enemy. and that object is constantly following the player through all rooms until you find a different one)
EDIT FOR 3: I used persisent option for the object but the object is away from the player in the next room (and when you find the object, the object follows you)
Edited by GreenhornGames, 17 April 2012 - 02:01 PM.











