Hi, I have made a map, you can zoom in; out; etc. But I want to place some limits to. So cannot make the map so tiny.
I’ve added the map, and I hope someone can help me…
I’ve uploaded it, so you can download it
tnx in advantage… :+)
Hi, I have made a map, you can zoom in; out; etc. But I want to place some limits to. So cannot make the map so tiny.
I’ve added the map, and I hope someone can help me…
I’ve uploaded it, so you can download it
tnx in advantage… :+)
on zoom out:
if (_root.kaart.kaart2._width > 100){ // 100 or whatever
_root.kaart.kaart2._width -= 20;
_root.kaart.kaart2._height -= 15;
}
on zoom out:
if (_root.kaart.kaart2._width < 1000){ // 1000 or whatever
_root.kaart.kaart2._width += 20;
_root.kaart.kaart2._height += 15;
}
Duh? can you explain it please :crazy: , thnx
Oh, I understand, that’s nice. And the moving right, and left works on the same principe?
yeah, its just sayng, as long as you arent past this value, you can change your variables
same will be fine for movemnt
Quite logical, anyway Thanks alot!!
I’ve added this in the one to go to the right
onClipEvent (enterFrame) {
if (_root.rightover) {
_root.kaart.kaart2._x -= 5;
}
if (_root.kaart.kaart2._x > -20){
_root.kaart.kaart2._x -= 5
}
}
But the map totally flips then?
:: Copyright KIRUPA 2024 //--